home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / wx / _gdi.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  230.2 KB  |  6,523 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import _gdi_
  5.  
  6. def _swig_setattr_nondynamic(self, class_type, name, value, static = 1):
  7.     if name == 'this':
  8.         if isinstance(value, class_type):
  9.             self.__dict__[name] = value.this
  10.             if hasattr(value, 'thisown'):
  11.                 self.__dict__['thisown'] = value.thisown
  12.             
  13.             del value.thisown
  14.             return None
  15.         
  16.     
  17.     method = class_type.__swig_setmethods__.get(name, None)
  18.     if method:
  19.         return method(self, value)
  20.     
  21.     if not static and hasattr(self, name) or name == 'thisown':
  22.         self.__dict__[name] = value
  23.     else:
  24.         raise AttributeError('You cannot add attributes to %s' % self)
  25.  
  26.  
  27. def _swig_setattr(self, class_type, name, value):
  28.     return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  29.  
  30.  
  31. def _swig_getattr(self, class_type, name):
  32.     method = class_type.__swig_getmethods__.get(name, None)
  33.     if method:
  34.         return method(self)
  35.     
  36.     raise AttributeError, name
  37.  
  38. import types
  39.  
  40. try:
  41.     _object = types.ObjectType
  42.     _newclass = 1
  43. except AttributeError:
  44.     
  45.     class _object:
  46.         pass
  47.  
  48.     _newclass = 0
  49.  
  50. del types
  51.  
  52. def _swig_setattr_nondynamic_method(set):
  53.     
  54.     def set_attr(self, name, value):
  55.         if hasattr(self, name) or name in ('this', 'thisown'):
  56.             set(self, name, value)
  57.         else:
  58.             raise AttributeError('You cannot add attributes to %s' % self)
  59.  
  60.     return set_attr
  61.  
  62. import _core
  63. wx = _core
  64.  
  65. class GDIObject(_core.Object):
  66.     '''Proxy of C++ GDIObject class'''
  67.     
  68.     def __repr__(self):
  69.         return '<%s.%s; proxy of C++ wxGDIObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  70.  
  71.     
  72.     def __init__(self, *args, **kwargs):
  73.         '''__init__(self) -> GDIObject'''
  74.         newobj = _gdi_.new_GDIObject(*args, **kwargs)
  75.         self.this = newobj.this
  76.         self.thisown = 1
  77.         del newobj.thisown
  78.  
  79.     
  80.     def __del__(self, destroy = _gdi_.delete_GDIObject):
  81.         '''__del__(self)'''
  82.         
  83.         try:
  84.             if self.thisown:
  85.                 destroy(self)
  86.         except:
  87.             pass
  88.  
  89.  
  90.     
  91.     def GetVisible(*args, **kwargs):
  92.         '''GetVisible(self) -> bool'''
  93.         return _gdi_.GDIObject_GetVisible(*args, **kwargs)
  94.  
  95.     
  96.     def SetVisible(*args, **kwargs):
  97.         '''SetVisible(self, bool visible)'''
  98.         return _gdi_.GDIObject_SetVisible(*args, **kwargs)
  99.  
  100.     
  101.     def IsNull(*args, **kwargs):
  102.         '''IsNull(self) -> bool'''
  103.         return _gdi_.GDIObject_IsNull(*args, **kwargs)
  104.  
  105.  
  106.  
  107. class GDIObjectPtr(GDIObject):
  108.     
  109.     def __init__(self, this):
  110.         self.this = this
  111.         if not hasattr(self, 'thisown'):
  112.             self.thisown = 0
  113.         
  114.         self.__class__ = GDIObject
  115.  
  116.  
  117. _gdi_.GDIObject_swigregister(GDIObjectPtr)
  118.  
  119. class Colour(_core.Object):
  120.     """
  121.     A colour is an object representing a combination of Red, Green, and
  122.     Blue (RGB) intensity values, and is used to determine drawing colours,
  123.     window colours, etc.  Valid RGB values are in the range 0 to 255.
  124.  
  125.     In wxPython there are typemaps that will automatically convert from a
  126.     colour name, from a '#RRGGBB' colour hex value string, or from a 3
  127.     integer tuple to a wx.Colour object when calling C++ methods that
  128.     expect a wxColour.  This means that the following are all
  129.     equivallent::
  130.  
  131.         win.SetBackgroundColour(wxColour(0,0,255))
  132.         win.SetBackgroundColour('BLUE')
  133.         win.SetBackgroundColour('#0000FF')
  134.         win.SetBackgroundColour((0,0,255))
  135.  
  136.     Additional colour names and their coresponding values can be added
  137.     using `wx.ColourDatabase`.  Various system colours (as set in the
  138.     user's system preferences) can be retrieved with
  139.     `wx.SystemSettings.GetColour`.
  140.  
  141.     """
  142.     
  143.     def __repr__(self):
  144.         return '<%s.%s; proxy of C++ wxColour instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  145.  
  146.     
  147.     def __init__(self, *args, **kwargs):
  148.         '''
  149.         __init__(self, byte red=0, byte green=0, byte blue=0) -> Colour
  150.  
  151.         Constructs a colour from red, green and blue values.
  152.  
  153.         :see: Alternate constructors `wx.NamedColour` and `wx.ColourRGB`.
  154.  
  155.         '''
  156.         newobj = _gdi_.new_Colour(*args, **kwargs)
  157.         self.this = newobj.this
  158.         self.thisown = 1
  159.         del newobj.thisown
  160.  
  161.     
  162.     def __del__(self, destroy = _gdi_.delete_Colour):
  163.         '''__del__(self)'''
  164.         
  165.         try:
  166.             if self.thisown:
  167.                 destroy(self)
  168.         except:
  169.             pass
  170.  
  171.  
  172.     
  173.     def Red(*args, **kwargs):
  174.         '''
  175.         Red(self) -> byte
  176.  
  177.         Returns the red intensity.
  178.         '''
  179.         return _gdi_.Colour_Red(*args, **kwargs)
  180.  
  181.     
  182.     def Green(*args, **kwargs):
  183.         '''
  184.         Green(self) -> byte
  185.  
  186.         Returns the green intensity.
  187.         '''
  188.         return _gdi_.Colour_Green(*args, **kwargs)
  189.  
  190.     
  191.     def Blue(*args, **kwargs):
  192.         '''
  193.         Blue(self) -> byte
  194.  
  195.         Returns the blue intensity.
  196.         '''
  197.         return _gdi_.Colour_Blue(*args, **kwargs)
  198.  
  199.     
  200.     def Ok(*args, **kwargs):
  201.         '''
  202.         Ok(self) -> bool
  203.  
  204.         Returns True if the colour object is valid (the colour has been
  205.         initialised with RGB values).
  206.         '''
  207.         return _gdi_.Colour_Ok(*args, **kwargs)
  208.  
  209.     
  210.     def Set(*args, **kwargs):
  211.         '''
  212.         Set(self, byte red, byte green, byte blue)
  213.  
  214.         Sets the RGB intensity values.
  215.         '''
  216.         return _gdi_.Colour_Set(*args, **kwargs)
  217.  
  218.     
  219.     def SetRGB(*args, **kwargs):
  220.         '''
  221.         SetRGB(self, unsigned long colRGB)
  222.  
  223.         Sets the RGB intensity values from a packed RGB value.
  224.         '''
  225.         return _gdi_.Colour_SetRGB(*args, **kwargs)
  226.  
  227.     
  228.     def SetFromName(*args, **kwargs):
  229.         '''
  230.         SetFromName(self, String colourName)
  231.  
  232.         Sets the RGB intensity values using a colour name listed in
  233.         ``wx.TheColourDatabase``.
  234.         '''
  235.         return _gdi_.Colour_SetFromName(*args, **kwargs)
  236.  
  237.     
  238.     def GetPixel(*args, **kwargs):
  239.         '''
  240.         GetPixel(self) -> long
  241.  
  242.         Returns a pixel value which is platform-dependent. On Windows, a
  243.         COLORREF is returned. On X, an allocated pixel value is returned.  -1
  244.         is returned if the pixel is invalid (on X, unallocated).
  245.         '''
  246.         return _gdi_.Colour_GetPixel(*args, **kwargs)
  247.  
  248.     
  249.     def __eq__(*args, **kwargs):
  250.         '''
  251.         __eq__(self, PyObject other) -> bool
  252.  
  253.         Compare colours for equality.
  254.         '''
  255.         return _gdi_.Colour___eq__(*args, **kwargs)
  256.  
  257.     
  258.     def __ne__(*args, **kwargs):
  259.         '''
  260.         __ne__(self, PyObject other) -> bool
  261.  
  262.         Compare colours for inequality.
  263.         '''
  264.         return _gdi_.Colour___ne__(*args, **kwargs)
  265.  
  266.     
  267.     def Get(*args, **kwargs):
  268.         '''
  269.         Get() -> (r, g, b)
  270.  
  271.         Returns the RGB intensity values as a tuple.
  272.         '''
  273.         return _gdi_.Colour_Get(*args, **kwargs)
  274.  
  275.     
  276.     def GetRGB(*args, **kwargs):
  277.         '''
  278.         GetRGB(self) -> unsigned long
  279.  
  280.         Return the colour as a packed RGB value
  281.         '''
  282.         return _gdi_.Colour_GetRGB(*args, **kwargs)
  283.  
  284.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  285.     
  286.     def __str__(self):
  287.         return str(self.Get())
  288.  
  289.     
  290.     def __repr__(self):
  291.         return 'wx.Colour' + str(self.Get())
  292.  
  293.     
  294.     def __nonzero__(self):
  295.         return self.Ok()
  296.  
  297.     __safe_for_unpickling__ = True
  298.     
  299.     def __reduce__(self):
  300.         return (Colour, self.Get())
  301.  
  302.  
  303.  
  304. class ColourPtr(Colour):
  305.     
  306.     def __init__(self, this):
  307.         self.this = this
  308.         if not hasattr(self, 'thisown'):
  309.             self.thisown = 0
  310.         
  311.         self.__class__ = Colour
  312.  
  313.  
  314. _gdi_.Colour_swigregister(ColourPtr)
  315.  
  316. def NamedColour(*args, **kwargs):
  317.     '''
  318.     NamedColour(String colorName) -> Colour
  319.  
  320.     Constructs a colour object using a colour name listed in
  321.     ``wx.TheColourDatabase``.
  322.     '''
  323.     val = _gdi_.new_NamedColour(*args, **kwargs)
  324.     val.thisown = 1
  325.     return val
  326.  
  327.  
  328. def ColourRGB(*args, **kwargs):
  329.     '''
  330.     ColourRGB(unsigned long colRGB) -> Colour
  331.  
  332.     Constructs a colour from a packed RGB value.
  333.     '''
  334.     val = _gdi_.new_ColourRGB(*args, **kwargs)
  335.     val.thisown = 1
  336.     return val
  337.  
  338. Color = Colour
  339. NamedColor = NamedColour
  340. ColorRGB = ColourRGB
  341.  
  342. class Palette(GDIObject):
  343.     '''Proxy of C++ Palette class'''
  344.     
  345.     def __repr__(self):
  346.         return '<%s.%s; proxy of C++ wxPalette instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  347.  
  348.     
  349.     def __init__(self, *args, **kwargs):
  350.         '''__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette'''
  351.         newobj = _gdi_.new_Palette(*args, **kwargs)
  352.         self.this = newobj.this
  353.         self.thisown = 1
  354.         del newobj.thisown
  355.  
  356.     
  357.     def __del__(self, destroy = _gdi_.delete_Palette):
  358.         '''__del__(self)'''
  359.         
  360.         try:
  361.             if self.thisown:
  362.                 destroy(self)
  363.         except:
  364.             pass
  365.  
  366.  
  367.     
  368.     def GetPixel(*args, **kwargs):
  369.         '''GetPixel(self, byte red, byte green, byte blue) -> int'''
  370.         return _gdi_.Palette_GetPixel(*args, **kwargs)
  371.  
  372.     
  373.     def GetRGB(*args, **kwargs):
  374.         '''GetRGB(self, int pixel) -> (R,G,B)'''
  375.         return _gdi_.Palette_GetRGB(*args, **kwargs)
  376.  
  377.     
  378.     def GetColoursCount(*args, **kwargs):
  379.         '''GetColoursCount(self) -> int'''
  380.         return _gdi_.Palette_GetColoursCount(*args, **kwargs)
  381.  
  382.     
  383.     def Ok(*args, **kwargs):
  384.         '''Ok(self) -> bool'''
  385.         return _gdi_.Palette_Ok(*args, **kwargs)
  386.  
  387.     
  388.     def __nonzero__(self):
  389.         return self.Ok()
  390.  
  391.  
  392.  
  393. class PalettePtr(Palette):
  394.     
  395.     def __init__(self, this):
  396.         self.this = this
  397.         if not hasattr(self, 'thisown'):
  398.             self.thisown = 0
  399.         
  400.         self.__class__ = Palette
  401.  
  402.  
  403. _gdi_.Palette_swigregister(PalettePtr)
  404.  
  405. class Pen(GDIObject):
  406.     '''Proxy of C++ Pen class'''
  407.     
  408.     def __repr__(self):
  409.         return '<%s.%s; proxy of C++ wxPen instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  410.  
  411.     
  412.     def __init__(self, *args, **kwargs):
  413.         '''__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen'''
  414.         newobj = _gdi_.new_Pen(*args, **kwargs)
  415.         self.this = newobj.this
  416.         self.thisown = 1
  417.         del newobj.thisown
  418.  
  419.     
  420.     def __del__(self, destroy = _gdi_.delete_Pen):
  421.         '''__del__(self)'''
  422.         
  423.         try:
  424.             if self.thisown:
  425.                 destroy(self)
  426.         except:
  427.             pass
  428.  
  429.  
  430.     
  431.     def GetCap(*args, **kwargs):
  432.         '''GetCap(self) -> int'''
  433.         return _gdi_.Pen_GetCap(*args, **kwargs)
  434.  
  435.     
  436.     def GetColour(*args, **kwargs):
  437.         '''GetColour(self) -> Colour'''
  438.         return _gdi_.Pen_GetColour(*args, **kwargs)
  439.  
  440.     
  441.     def GetJoin(*args, **kwargs):
  442.         '''GetJoin(self) -> int'''
  443.         return _gdi_.Pen_GetJoin(*args, **kwargs)
  444.  
  445.     
  446.     def GetStyle(*args, **kwargs):
  447.         '''GetStyle(self) -> int'''
  448.         return _gdi_.Pen_GetStyle(*args, **kwargs)
  449.  
  450.     
  451.     def GetWidth(*args, **kwargs):
  452.         '''GetWidth(self) -> int'''
  453.         return _gdi_.Pen_GetWidth(*args, **kwargs)
  454.  
  455.     
  456.     def Ok(*args, **kwargs):
  457.         '''Ok(self) -> bool'''
  458.         return _gdi_.Pen_Ok(*args, **kwargs)
  459.  
  460.     
  461.     def SetCap(*args, **kwargs):
  462.         '''SetCap(self, int cap_style)'''
  463.         return _gdi_.Pen_SetCap(*args, **kwargs)
  464.  
  465.     
  466.     def SetColour(*args, **kwargs):
  467.         '''SetColour(self, Colour colour)'''
  468.         return _gdi_.Pen_SetColour(*args, **kwargs)
  469.  
  470.     
  471.     def SetJoin(*args, **kwargs):
  472.         '''SetJoin(self, int join_style)'''
  473.         return _gdi_.Pen_SetJoin(*args, **kwargs)
  474.  
  475.     
  476.     def SetStyle(*args, **kwargs):
  477.         '''SetStyle(self, int style)'''
  478.         return _gdi_.Pen_SetStyle(*args, **kwargs)
  479.  
  480.     
  481.     def SetWidth(*args, **kwargs):
  482.         '''SetWidth(self, int width)'''
  483.         return _gdi_.Pen_SetWidth(*args, **kwargs)
  484.  
  485.     
  486.     def SetDashes(*args, **kwargs):
  487.         '''SetDashes(self, int dashes)'''
  488.         return _gdi_.Pen_SetDashes(*args, **kwargs)
  489.  
  490.     
  491.     def GetDashes(*args, **kwargs):
  492.         '''GetDashes(self) -> PyObject'''
  493.         return _gdi_.Pen_GetDashes(*args, **kwargs)
  494.  
  495.     
  496.     def _SetDashes(*args, **kwargs):
  497.         '''_SetDashes(self, PyObject _self, PyObject pyDashes)'''
  498.         return _gdi_.Pen__SetDashes(*args, **kwargs)
  499.  
  500.     
  501.     def SetDashes(self, dashes):
  502.         '''
  503.         Associate a list of dash lengths with the Pen.
  504.         '''
  505.         self._SetDashes(self, dashes)
  506.  
  507.     
  508.     def GetDashCount(*args, **kwargs):
  509.         '''GetDashCount(self) -> int'''
  510.         return _gdi_.Pen_GetDashCount(*args, **kwargs)
  511.  
  512.     
  513.     def GetStipple(*args, **kwargs):
  514.         '''GetStipple(self) -> Bitmap'''
  515.         return _gdi_.Pen_GetStipple(*args, **kwargs)
  516.  
  517.     
  518.     def SetStipple(*args, **kwargs):
  519.         '''SetStipple(self, Bitmap stipple)'''
  520.         return _gdi_.Pen_SetStipple(*args, **kwargs)
  521.  
  522.     
  523.     def __eq__(*args, **kwargs):
  524.         '''__eq__(self, Pen other) -> bool'''
  525.         return _gdi_.Pen___eq__(*args, **kwargs)
  526.  
  527.     
  528.     def __ne__(*args, **kwargs):
  529.         '''__ne__(self, Pen other) -> bool'''
  530.         return _gdi_.Pen___ne__(*args, **kwargs)
  531.  
  532.     
  533.     def __nonzero__(self):
  534.         return self.Ok()
  535.  
  536.  
  537.  
  538. class PenPtr(Pen):
  539.     
  540.     def __init__(self, this):
  541.         self.this = this
  542.         if not hasattr(self, 'thisown'):
  543.             self.thisown = 0
  544.         
  545.         self.__class__ = Pen
  546.  
  547.  
  548. _gdi_.Pen_swigregister(PenPtr)
  549.  
  550. class Brush(GDIObject):
  551.     '''
  552.     A brush is a drawing tool for filling in areas. It is used for
  553.     painting the background of rectangles, ellipses, etc. when drawing on
  554.     a `wx.DC`.  It has a colour and a style.
  555.     '''
  556.     
  557.     def __repr__(self):
  558.         return '<%s.%s; proxy of C++ wxBrush instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  559.  
  560.     
  561.     def __init__(self, *args, **kwargs):
  562.         '''
  563.         __init__(self, Colour colour, int style=SOLID) -> Brush
  564.  
  565.         Constructs a brush from a `wx.Colour` object and a style.
  566.         '''
  567.         newobj = _gdi_.new_Brush(*args, **kwargs)
  568.         self.this = newobj.this
  569.         self.thisown = 1
  570.         del newobj.thisown
  571.  
  572.     
  573.     def __del__(self, destroy = _gdi_.delete_Brush):
  574.         '''__del__(self)'''
  575.         
  576.         try:
  577.             if self.thisown:
  578.                 destroy(self)
  579.         except:
  580.             pass
  581.  
  582.  
  583.     
  584.     def SetColour(*args, **kwargs):
  585.         """
  586.         SetColour(self, Colour col)
  587.  
  588.         Set the brush's `wx.Colour`.
  589.         """
  590.         return _gdi_.Brush_SetColour(*args, **kwargs)
  591.  
  592.     
  593.     def SetStyle(*args, **kwargs):
  594.         '''
  595.         SetStyle(self, int style)
  596.  
  597.         Sets the style of the brush. See `__init__` for a listing of styles.
  598.         '''
  599.         return _gdi_.Brush_SetStyle(*args, **kwargs)
  600.  
  601.     
  602.     def SetStipple(*args, **kwargs):
  603.         '''
  604.         SetStipple(self, Bitmap stipple)
  605.  
  606.         Sets the stipple `wx.Bitmap`.
  607.         '''
  608.         return _gdi_.Brush_SetStipple(*args, **kwargs)
  609.  
  610.     
  611.     def GetColour(*args, **kwargs):
  612.         '''
  613.         GetColour(self) -> Colour
  614.  
  615.         Returns the `wx.Colour` of the brush.
  616.         '''
  617.         return _gdi_.Brush_GetColour(*args, **kwargs)
  618.  
  619.     
  620.     def GetStyle(*args, **kwargs):
  621.         '''
  622.         GetStyle(self) -> int
  623.  
  624.         Returns the style of the brush.  See `__init__` for a listing of
  625.         styles.
  626.         '''
  627.         return _gdi_.Brush_GetStyle(*args, **kwargs)
  628.  
  629.     
  630.     def GetStipple(*args, **kwargs):
  631.         '''
  632.         GetStipple(self) -> Bitmap
  633.  
  634.         Returns the stiple `wx.Bitmap` of the brush.  If the brush does not
  635.         have a wx.STIPPLE style, then the return value may be non-None but an
  636.         uninitialised bitmap (`wx.Bitmap.Ok` returns False).
  637.         '''
  638.         return _gdi_.Brush_GetStipple(*args, **kwargs)
  639.  
  640.     
  641.     def IsHatch(*args, **kwargs):
  642.         '''
  643.         IsHatch(self) -> bool
  644.  
  645.         Is the current style a hatch type?
  646.         '''
  647.         return _gdi_.Brush_IsHatch(*args, **kwargs)
  648.  
  649.     
  650.     def Ok(*args, **kwargs):
  651.         '''
  652.         Ok(self) -> bool
  653.  
  654.         Returns True if the brush is initialised and valid.
  655.         '''
  656.         return _gdi_.Brush_Ok(*args, **kwargs)
  657.  
  658.     
  659.     def __nonzero__(self):
  660.         return self.Ok()
  661.  
  662.  
  663.  
  664. class BrushPtr(Brush):
  665.     
  666.     def __init__(self, this):
  667.         self.this = this
  668.         if not hasattr(self, 'thisown'):
  669.             self.thisown = 0
  670.         
  671.         self.__class__ = Brush
  672.  
  673.  
  674. _gdi_.Brush_swigregister(BrushPtr)
  675.  
  676. def BrushFromBitmap(*args, **kwargs):
  677.     '''
  678.     BrushFromBitmap(Bitmap stippleBitmap) -> Brush
  679.  
  680.     Constructs a stippled brush using a bitmap.
  681.     '''
  682.     val = _gdi_.new_BrushFromBitmap(*args, **kwargs)
  683.     val.thisown = 1
  684.     return val
  685.  
  686.  
  687. class Bitmap(GDIObject):
  688.     '''
  689.     The wx.Bitmap class encapsulates the concept of a platform-dependent
  690.     bitmap.  It can be either monochrome or colour, and either loaded from
  691.     a file or created dynamically.  A bitmap can be selected into a memory
  692.     device context (instance of `wx.MemoryDC`). This enables the bitmap to
  693.     be copied to a window or memory device context using `wx.DC.Blit`, or
  694.     to be used as a drawing surface.
  695.     '''
  696.     
  697.     def __repr__(self):
  698.         return '<%s.%s; proxy of C++ wxBitmap instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  699.  
  700.     
  701.     def __init__(self, *args, **kwargs):
  702.         '''
  703.         __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap
  704.  
  705.         Loads a bitmap from a file.
  706.         '''
  707.         newobj = _gdi_.new_Bitmap(*args, **kwargs)
  708.         self.this = newobj.this
  709.         self.thisown = 1
  710.         del newobj.thisown
  711.  
  712.     
  713.     def __del__(self, destroy = _gdi_.delete_Bitmap):
  714.         '''__del__(self)'''
  715.         
  716.         try:
  717.             if self.thisown:
  718.                 destroy(self)
  719.         except:
  720.             pass
  721.  
  722.  
  723.     
  724.     def GetHandle(*args, **kwargs):
  725.         '''GetHandle(self) -> long'''
  726.         return _gdi_.Bitmap_GetHandle(*args, **kwargs)
  727.  
  728.     
  729.     def SetHandle(*args, **kwargs):
  730.         '''SetHandle(self, long handle)'''
  731.         return _gdi_.Bitmap_SetHandle(*args, **kwargs)
  732.  
  733.     
  734.     def Ok(*args, **kwargs):
  735.         '''Ok(self) -> bool'''
  736.         return _gdi_.Bitmap_Ok(*args, **kwargs)
  737.  
  738.     
  739.     def GetWidth(*args, **kwargs):
  740.         '''
  741.         GetWidth(self) -> int
  742.  
  743.         Gets the width of the bitmap in pixels.
  744.         '''
  745.         return _gdi_.Bitmap_GetWidth(*args, **kwargs)
  746.  
  747.     
  748.     def GetHeight(*args, **kwargs):
  749.         '''
  750.         GetHeight(self) -> int
  751.  
  752.         Gets the height of the bitmap in pixels.
  753.         '''
  754.         return _gdi_.Bitmap_GetHeight(*args, **kwargs)
  755.  
  756.     
  757.     def GetDepth(*args, **kwargs):
  758.         '''
  759.         GetDepth(self) -> int
  760.  
  761.         Gets the colour depth of the bitmap. A value of 1 indicates a
  762.         monochrome bitmap.
  763.         '''
  764.         return _gdi_.Bitmap_GetDepth(*args, **kwargs)
  765.  
  766.     
  767.     def GetSize(*args, **kwargs):
  768.         '''
  769.         GetSize(self) -> Size
  770.  
  771.         Get the size of the bitmap.
  772.         '''
  773.         return _gdi_.Bitmap_GetSize(*args, **kwargs)
  774.  
  775.     
  776.     def ConvertToImage(*args, **kwargs):
  777.         '''
  778.         ConvertToImage(self) -> Image
  779.  
  780.         Creates a platform-independent image from a platform-dependent
  781.         bitmap. This preserves mask information so that bitmaps and images can
  782.         be converted back and forth without loss in that respect.
  783.         '''
  784.         return _gdi_.Bitmap_ConvertToImage(*args, **kwargs)
  785.  
  786.     
  787.     def GetMask(*args, **kwargs):
  788.         '''
  789.         GetMask(self) -> Mask
  790.  
  791.         Gets the associated mask (if any) which may have been loaded from a
  792.         file or explpicitly set for the bitmap.
  793.  
  794.         :see: `SetMask`, `wx.Mask`
  795.  
  796.         '''
  797.         return _gdi_.Bitmap_GetMask(*args, **kwargs)
  798.  
  799.     
  800.     def SetMask(*args, **kwargs):
  801.         '''
  802.         SetMask(self, Mask mask)
  803.  
  804.         Sets the mask for this bitmap.
  805.  
  806.         :see: `GetMask`, `wx.Mask`
  807.  
  808.         '''
  809.         return _gdi_.Bitmap_SetMask(*args, **kwargs)
  810.  
  811.     
  812.     def SetMaskColour(*args, **kwargs):
  813.         '''
  814.         SetMaskColour(self, Colour colour)
  815.  
  816.         Create a Mask based on a specified colour in the Bitmap.
  817.         '''
  818.         return _gdi_.Bitmap_SetMaskColour(*args, **kwargs)
  819.  
  820.     
  821.     def GetSubBitmap(*args, **kwargs):
  822.         '''
  823.         GetSubBitmap(self, Rect rect) -> Bitmap
  824.  
  825.         Returns a sub-bitmap of the current one as long as the rect belongs
  826.         entirely to the bitmap. This function preserves bit depth and mask
  827.         information.
  828.         '''
  829.         return _gdi_.Bitmap_GetSubBitmap(*args, **kwargs)
  830.  
  831.     
  832.     def SaveFile(*args, **kwargs):
  833.         '''
  834.         SaveFile(self, String name, int type, Palette palette=None) -> bool
  835.  
  836.         Saves a bitmap in the named file.  See `__init__` for a description of
  837.         the ``type`` parameter.
  838.         '''
  839.         return _gdi_.Bitmap_SaveFile(*args, **kwargs)
  840.  
  841.     
  842.     def LoadFile(*args, **kwargs):
  843.         '''
  844.         LoadFile(self, String name, int type) -> bool
  845.  
  846.         Loads a bitmap from a file.  See `__init__` for a description of the
  847.         ``type`` parameter.
  848.         '''
  849.         return _gdi_.Bitmap_LoadFile(*args, **kwargs)
  850.  
  851.     
  852.     def GetPalette(*args, **kwargs):
  853.         '''GetPalette(self) -> Palette'''
  854.         return _gdi_.Bitmap_GetPalette(*args, **kwargs)
  855.  
  856.     
  857.     def SetPalette(*args, **kwargs):
  858.         '''SetPalette(self, Palette palette)'''
  859.         return _gdi_.Bitmap_SetPalette(*args, **kwargs)
  860.  
  861.     
  862.     def CopyFromIcon(*args, **kwargs):
  863.         '''CopyFromIcon(self, Icon icon) -> bool'''
  864.         return _gdi_.Bitmap_CopyFromIcon(*args, **kwargs)
  865.  
  866.     
  867.     def SetHeight(*args, **kwargs):
  868.         '''
  869.         SetHeight(self, int height)
  870.  
  871.         Set the height property (does not affect the existing bitmap data).
  872.         '''
  873.         return _gdi_.Bitmap_SetHeight(*args, **kwargs)
  874.  
  875.     
  876.     def SetWidth(*args, **kwargs):
  877.         '''
  878.         SetWidth(self, int width)
  879.  
  880.         Set the width property (does not affect the existing bitmap data).
  881.         '''
  882.         return _gdi_.Bitmap_SetWidth(*args, **kwargs)
  883.  
  884.     
  885.     def SetDepth(*args, **kwargs):
  886.         '''
  887.         SetDepth(self, int depth)
  888.  
  889.         Set the depth property (does not affect the existing bitmap data).
  890.         '''
  891.         return _gdi_.Bitmap_SetDepth(*args, **kwargs)
  892.  
  893.     
  894.     def SetSize(*args, **kwargs):
  895.         '''
  896.         SetSize(self, Size size)
  897.  
  898.         Set the bitmap size (does not affect the existing bitmap data).
  899.         '''
  900.         return _gdi_.Bitmap_SetSize(*args, **kwargs)
  901.  
  902.     
  903.     def CopyFromCursor(*args, **kwargs):
  904.         '''CopyFromCursor(self, Cursor cursor) -> bool'''
  905.         return _gdi_.Bitmap_CopyFromCursor(*args, **kwargs)
  906.  
  907.     
  908.     def GetQuality(*args, **kwargs):
  909.         '''GetQuality(self) -> int'''
  910.         return _gdi_.Bitmap_GetQuality(*args, **kwargs)
  911.  
  912.     
  913.     def SetQuality(*args, **kwargs):
  914.         '''SetQuality(self, int q)'''
  915.         return _gdi_.Bitmap_SetQuality(*args, **kwargs)
  916.  
  917.     GetQuality = wx._deprecated(GetQuality)
  918.     SetQuality = wx._deprecated(SetQuality)
  919.     
  920.     def __nonzero__(self):
  921.         return self.Ok()
  922.  
  923.     
  924.     def __eq__(*args, **kwargs):
  925.         '''__eq__(self, Bitmap other) -> bool'''
  926.         return _gdi_.Bitmap___eq__(*args, **kwargs)
  927.  
  928.     
  929.     def __ne__(*args, **kwargs):
  930.         '''__ne__(self, Bitmap other) -> bool'''
  931.         return _gdi_.Bitmap___ne__(*args, **kwargs)
  932.  
  933.  
  934.  
  935. class BitmapPtr(Bitmap):
  936.     
  937.     def __init__(self, this):
  938.         self.this = this
  939.         if not hasattr(self, 'thisown'):
  940.             self.thisown = 0
  941.         
  942.         self.__class__ = Bitmap
  943.  
  944.  
  945. _gdi_.Bitmap_swigregister(BitmapPtr)
  946.  
  947. def EmptyBitmap(*args, **kwargs):
  948.     '''
  949.     EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
  950.  
  951.     Creates a new bitmap of the given size.  A depth of -1 indicates the
  952.     depth of the current screen or visual. Some platforms only support 1
  953.     for monochrome and -1 for the current colour setting.
  954.     '''
  955.     val = _gdi_.new_EmptyBitmap(*args, **kwargs)
  956.     val.thisown = 1
  957.     return val
  958.  
  959.  
  960. def BitmapFromIcon(*args, **kwargs):
  961.     '''
  962.     BitmapFromIcon(Icon icon) -> Bitmap
  963.  
  964.     Create a new bitmap from a `wx.Icon` object.
  965.     '''
  966.     val = _gdi_.new_BitmapFromIcon(*args, **kwargs)
  967.     val.thisown = 1
  968.     return val
  969.  
  970.  
  971. def BitmapFromImage(*args, **kwargs):
  972.     '''
  973.     BitmapFromImage(Image image, int depth=-1) -> Bitmap
  974.  
  975.     Creates bitmap object from a `wx.Image`. This has to be done to
  976.     actually display a `wx.Image` as you cannot draw an image directly on
  977.     a window. The resulting bitmap will use the provided colour depth (or
  978.     that of the current screen colour depth if depth is -1) which entails
  979.     that a colour reduction may have to take place.
  980.     '''
  981.     val = _gdi_.new_BitmapFromImage(*args, **kwargs)
  982.     val.thisown = 1
  983.     return val
  984.  
  985.  
  986. def BitmapFromXPMData(*args, **kwargs):
  987.     '''
  988.     BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
  989.  
  990.     Construct a Bitmap from a list of strings formatted as XPM data.
  991.     '''
  992.     val = _gdi_.new_BitmapFromXPMData(*args, **kwargs)
  993.     val.thisown = 1
  994.     return val
  995.  
  996.  
  997. def BitmapFromBits(*args, **kwargs):
  998.     '''
  999.     BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
  1000.  
  1001.     Creates a bitmap from an array of bits.  You should only use this
  1002.     function for monochrome bitmaps (depth 1) in portable programs: in
  1003.     this case the bits parameter should contain an XBM image.  For other
  1004.     bit depths, the behaviour is platform dependent.
  1005.     '''
  1006.     val = _gdi_.new_BitmapFromBits(*args, **kwargs)
  1007.     val.thisown = 1
  1008.     return val
  1009.  
  1010.  
  1011. class Mask(_core.Object):
  1012.     '''
  1013.     This class encapsulates a monochrome mask bitmap, where the masked
  1014.     area is black and the unmasked area is white. When associated with a
  1015.     bitmap and drawn in a device context, the unmasked area of the bitmap
  1016.     will be drawn, and the masked area will not be drawn.
  1017.  
  1018.     A mask may be associated with a `wx.Bitmap`. It is used in
  1019.     `wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a
  1020.     `wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
  1021.     mask.
  1022.     '''
  1023.     
  1024.     def __repr__(self):
  1025.         return '<%s.%s; proxy of C++ wxMask instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1026.  
  1027.     
  1028.     def __init__(self, *args, **kwargs):
  1029.         '''
  1030.         __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask
  1031.  
  1032.         Constructs a mask from a `wx.Bitmap` and a `wx.Colour` in that bitmap
  1033.         that indicates the transparent portions of the mask.  In other words,
  1034.         the pixels in ``bitmap`` that match ``colour`` will be the transparent
  1035.         portions of the mask.  If no ``colour`` or an invalid ``colour`` is
  1036.         passed then BLACK is used.
  1037.  
  1038.         :see: `wx.Bitmap`, `wx.Colour`
  1039.         '''
  1040.         newobj = _gdi_.new_Mask(*args, **kwargs)
  1041.         self.this = newobj.this
  1042.         self.thisown = 1
  1043.         del newobj.thisown
  1044.  
  1045.  
  1046.  
  1047. class MaskPtr(Mask):
  1048.     
  1049.     def __init__(self, this):
  1050.         self.this = this
  1051.         if not hasattr(self, 'thisown'):
  1052.             self.thisown = 0
  1053.         
  1054.         self.__class__ = Mask
  1055.  
  1056.  
  1057. _gdi_.Mask_swigregister(MaskPtr)
  1058. MaskColour = wx._deprecated(Mask, 'wx.MaskColour is deprecated, use `wx.Mask` instead.')
  1059.  
  1060. class Icon(GDIObject):
  1061.     '''Proxy of C++ Icon class'''
  1062.     
  1063.     def __repr__(self):
  1064.         return '<%s.%s; proxy of C++ wxIcon instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1065.  
  1066.     
  1067.     def __init__(self, *args, **kwargs):
  1068.         '''__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon'''
  1069.         newobj = _gdi_.new_Icon(*args, **kwargs)
  1070.         self.this = newobj.this
  1071.         self.thisown = 1
  1072.         del newobj.thisown
  1073.  
  1074.     
  1075.     def __del__(self, destroy = _gdi_.delete_Icon):
  1076.         '''__del__(self)'''
  1077.         
  1078.         try:
  1079.             if self.thisown:
  1080.                 destroy(self)
  1081.         except:
  1082.             pass
  1083.  
  1084.  
  1085.     
  1086.     def LoadFile(*args, **kwargs):
  1087.         '''LoadFile(self, String name, int type) -> bool'''
  1088.         return _gdi_.Icon_LoadFile(*args, **kwargs)
  1089.  
  1090.     
  1091.     def GetHandle(*args, **kwargs):
  1092.         '''GetHandle(self) -> long'''
  1093.         return _gdi_.Icon_GetHandle(*args, **kwargs)
  1094.  
  1095.     
  1096.     def SetHandle(*args, **kwargs):
  1097.         '''SetHandle(self, long handle)'''
  1098.         return _gdi_.Icon_SetHandle(*args, **kwargs)
  1099.  
  1100.     
  1101.     def Ok(*args, **kwargs):
  1102.         '''Ok(self) -> bool'''
  1103.         return _gdi_.Icon_Ok(*args, **kwargs)
  1104.  
  1105.     
  1106.     def GetWidth(*args, **kwargs):
  1107.         '''GetWidth(self) -> int'''
  1108.         return _gdi_.Icon_GetWidth(*args, **kwargs)
  1109.  
  1110.     
  1111.     def GetHeight(*args, **kwargs):
  1112.         '''GetHeight(self) -> int'''
  1113.         return _gdi_.Icon_GetHeight(*args, **kwargs)
  1114.  
  1115.     
  1116.     def GetDepth(*args, **kwargs):
  1117.         '''GetDepth(self) -> int'''
  1118.         return _gdi_.Icon_GetDepth(*args, **kwargs)
  1119.  
  1120.     
  1121.     def SetWidth(*args, **kwargs):
  1122.         '''SetWidth(self, int w)'''
  1123.         return _gdi_.Icon_SetWidth(*args, **kwargs)
  1124.  
  1125.     
  1126.     def SetHeight(*args, **kwargs):
  1127.         '''SetHeight(self, int h)'''
  1128.         return _gdi_.Icon_SetHeight(*args, **kwargs)
  1129.  
  1130.     
  1131.     def SetDepth(*args, **kwargs):
  1132.         '''SetDepth(self, int d)'''
  1133.         return _gdi_.Icon_SetDepth(*args, **kwargs)
  1134.  
  1135.     
  1136.     def SetSize(*args, **kwargs):
  1137.         '''SetSize(self, Size size)'''
  1138.         return _gdi_.Icon_SetSize(*args, **kwargs)
  1139.  
  1140.     
  1141.     def CopyFromBitmap(*args, **kwargs):
  1142.         '''CopyFromBitmap(self, Bitmap bmp)'''
  1143.         return _gdi_.Icon_CopyFromBitmap(*args, **kwargs)
  1144.  
  1145.     
  1146.     def __nonzero__(self):
  1147.         return self.Ok()
  1148.  
  1149.  
  1150.  
  1151. class IconPtr(Icon):
  1152.     
  1153.     def __init__(self, this):
  1154.         self.this = this
  1155.         if not hasattr(self, 'thisown'):
  1156.             self.thisown = 0
  1157.         
  1158.         self.__class__ = Icon
  1159.  
  1160.  
  1161. _gdi_.Icon_swigregister(IconPtr)
  1162.  
  1163. def EmptyIcon(*args, **kwargs):
  1164.     '''EmptyIcon() -> Icon'''
  1165.     val = _gdi_.new_EmptyIcon(*args, **kwargs)
  1166.     val.thisown = 1
  1167.     return val
  1168.  
  1169.  
  1170. def IconFromLocation(*args, **kwargs):
  1171.     '''IconFromLocation(IconLocation loc) -> Icon'''
  1172.     val = _gdi_.new_IconFromLocation(*args, **kwargs)
  1173.     val.thisown = 1
  1174.     return val
  1175.  
  1176.  
  1177. def IconFromBitmap(*args, **kwargs):
  1178.     '''IconFromBitmap(Bitmap bmp) -> Icon'''
  1179.     val = _gdi_.new_IconFromBitmap(*args, **kwargs)
  1180.     val.thisown = 1
  1181.     return val
  1182.  
  1183.  
  1184. def IconFromXPMData(*args, **kwargs):
  1185.     '''IconFromXPMData(PyObject listOfStrings) -> Icon'''
  1186.     val = _gdi_.new_IconFromXPMData(*args, **kwargs)
  1187.     val.thisown = 1
  1188.     return val
  1189.  
  1190.  
  1191. class IconLocation(object):
  1192.     '''Proxy of C++ IconLocation class'''
  1193.     
  1194.     def __repr__(self):
  1195.         return '<%s.%s; proxy of C++ wxIconLocation instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1196.  
  1197.     
  1198.     def __init__(self, *args, **kwargs):
  1199.         '''__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation'''
  1200.         newobj = _gdi_.new_IconLocation(*args, **kwargs)
  1201.         self.this = newobj.this
  1202.         self.thisown = 1
  1203.         del newobj.thisown
  1204.  
  1205.     
  1206.     def __del__(self, destroy = _gdi_.delete_IconLocation):
  1207.         '''__del__(self)'''
  1208.         
  1209.         try:
  1210.             if self.thisown:
  1211.                 destroy(self)
  1212.         except:
  1213.             pass
  1214.  
  1215.  
  1216.     
  1217.     def IsOk(*args, **kwargs):
  1218.         '''IsOk(self) -> bool'''
  1219.         return _gdi_.IconLocation_IsOk(*args, **kwargs)
  1220.  
  1221.     
  1222.     def __nonzero__(self):
  1223.         return self.Ok()
  1224.  
  1225.     
  1226.     def SetFileName(*args, **kwargs):
  1227.         '''SetFileName(self, String filename)'''
  1228.         return _gdi_.IconLocation_SetFileName(*args, **kwargs)
  1229.  
  1230.     
  1231.     def GetFileName(*args, **kwargs):
  1232.         '''GetFileName(self) -> String'''
  1233.         return _gdi_.IconLocation_GetFileName(*args, **kwargs)
  1234.  
  1235.     
  1236.     def SetIndex(*args, **kwargs):
  1237.         '''SetIndex(self, int num)'''
  1238.         return _gdi_.IconLocation_SetIndex(*args, **kwargs)
  1239.  
  1240.     
  1241.     def GetIndex(*args, **kwargs):
  1242.         '''GetIndex(self) -> int'''
  1243.         return _gdi_.IconLocation_GetIndex(*args, **kwargs)
  1244.  
  1245.  
  1246.  
  1247. class IconLocationPtr(IconLocation):
  1248.     
  1249.     def __init__(self, this):
  1250.         self.this = this
  1251.         if not hasattr(self, 'thisown'):
  1252.             self.thisown = 0
  1253.         
  1254.         self.__class__ = IconLocation
  1255.  
  1256.  
  1257. _gdi_.IconLocation_swigregister(IconLocationPtr)
  1258.  
  1259. class IconBundle(object):
  1260.     '''Proxy of C++ IconBundle class'''
  1261.     
  1262.     def __repr__(self):
  1263.         return '<%s.%s; proxy of C++ wxIconBundle instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1264.  
  1265.     
  1266.     def __init__(self, *args, **kwargs):
  1267.         '''__init__(self) -> IconBundle'''
  1268.         newobj = _gdi_.new_IconBundle(*args, **kwargs)
  1269.         self.this = newobj.this
  1270.         self.thisown = 1
  1271.         del newobj.thisown
  1272.  
  1273.     
  1274.     def __del__(self, destroy = _gdi_.delete_IconBundle):
  1275.         '''__del__(self)'''
  1276.         
  1277.         try:
  1278.             if self.thisown:
  1279.                 destroy(self)
  1280.         except:
  1281.             pass
  1282.  
  1283.  
  1284.     
  1285.     def AddIcon(*args, **kwargs):
  1286.         '''AddIcon(self, Icon icon)'''
  1287.         return _gdi_.IconBundle_AddIcon(*args, **kwargs)
  1288.  
  1289.     
  1290.     def AddIconFromFile(*args, **kwargs):
  1291.         '''AddIconFromFile(self, String file, long type)'''
  1292.         return _gdi_.IconBundle_AddIconFromFile(*args, **kwargs)
  1293.  
  1294.     
  1295.     def GetIcon(*args, **kwargs):
  1296.         '''GetIcon(self, Size size) -> Icon'''
  1297.         return _gdi_.IconBundle_GetIcon(*args, **kwargs)
  1298.  
  1299.  
  1300.  
  1301. class IconBundlePtr(IconBundle):
  1302.     
  1303.     def __init__(self, this):
  1304.         self.this = this
  1305.         if not hasattr(self, 'thisown'):
  1306.             self.thisown = 0
  1307.         
  1308.         self.__class__ = IconBundle
  1309.  
  1310.  
  1311. _gdi_.IconBundle_swigregister(IconBundlePtr)
  1312.  
  1313. def IconBundleFromFile(*args, **kwargs):
  1314.     '''IconBundleFromFile(String file, long type) -> IconBundle'''
  1315.     val = _gdi_.new_IconBundleFromFile(*args, **kwargs)
  1316.     val.thisown = 1
  1317.     return val
  1318.  
  1319.  
  1320. def IconBundleFromIcon(*args, **kwargs):
  1321.     '''IconBundleFromIcon(Icon icon) -> IconBundle'''
  1322.     val = _gdi_.new_IconBundleFromIcon(*args, **kwargs)
  1323.     val.thisown = 1
  1324.     return val
  1325.  
  1326.  
  1327. class Cursor(GDIObject):
  1328.     '''
  1329.     A cursor is a small bitmap usually used for denoting where the mouse
  1330.     pointer is, with a picture that might indicate the interpretation of a
  1331.     mouse click.
  1332.  
  1333.     A single cursor object may be used in many windows (any subwindow
  1334.     type). The wxWindows convention is to set the cursor for a window, as
  1335.     in X, rather than to set it globally as in MS Windows, although a
  1336.     global `wx.SetCursor` function is also available for use on MS Windows.
  1337.  
  1338.     '''
  1339.     
  1340.     def __repr__(self):
  1341.         return '<%s.%s; proxy of C++ wxCursor instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1342.  
  1343.     
  1344.     def __init__(self, *args, **kwargs):
  1345.         '''
  1346.         __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
  1347.  
  1348.         Construct a Cursor from a file.  Specify the type of file using
  1349.         wx.BITAMP_TYPE* constants, and specify the hotspot if not using a .cur
  1350.         file.
  1351.         '''
  1352.         newobj = _gdi_.new_Cursor(*args, **kwargs)
  1353.         self.this = newobj.this
  1354.         self.thisown = 1
  1355.         del newobj.thisown
  1356.  
  1357.     
  1358.     def __del__(self, destroy = _gdi_.delete_Cursor):
  1359.         '''__del__(self)'''
  1360.         
  1361.         try:
  1362.             if self.thisown:
  1363.                 destroy(self)
  1364.         except:
  1365.             pass
  1366.  
  1367.  
  1368.     
  1369.     def GetHandle(*args, **kwargs):
  1370.         '''
  1371.         GetHandle(self) -> long
  1372.  
  1373.         Get the MS Windows handle for the cursor
  1374.         '''
  1375.         return _gdi_.Cursor_GetHandle(*args, **kwargs)
  1376.  
  1377.     
  1378.     def SetHandle(*args, **kwargs):
  1379.         '''
  1380.         SetHandle(self, long handle)
  1381.  
  1382.         Set the MS Windows handle to use for the cursor
  1383.         '''
  1384.         return _gdi_.Cursor_SetHandle(*args, **kwargs)
  1385.  
  1386.     
  1387.     def Ok(*args, **kwargs):
  1388.         '''Ok(self) -> bool'''
  1389.         return _gdi_.Cursor_Ok(*args, **kwargs)
  1390.  
  1391.     
  1392.     def __nonzero__(self):
  1393.         return self.Ok()
  1394.  
  1395.     
  1396.     def GetWidth(*args, **kwargs):
  1397.         '''GetWidth(self) -> int'''
  1398.         return _gdi_.Cursor_GetWidth(*args, **kwargs)
  1399.  
  1400.     
  1401.     def GetHeight(*args, **kwargs):
  1402.         '''GetHeight(self) -> int'''
  1403.         return _gdi_.Cursor_GetHeight(*args, **kwargs)
  1404.  
  1405.     
  1406.     def GetDepth(*args, **kwargs):
  1407.         '''GetDepth(self) -> int'''
  1408.         return _gdi_.Cursor_GetDepth(*args, **kwargs)
  1409.  
  1410.     
  1411.     def SetWidth(*args, **kwargs):
  1412.         '''SetWidth(self, int w)'''
  1413.         return _gdi_.Cursor_SetWidth(*args, **kwargs)
  1414.  
  1415.     
  1416.     def SetHeight(*args, **kwargs):
  1417.         '''SetHeight(self, int h)'''
  1418.         return _gdi_.Cursor_SetHeight(*args, **kwargs)
  1419.  
  1420.     
  1421.     def SetDepth(*args, **kwargs):
  1422.         '''SetDepth(self, int d)'''
  1423.         return _gdi_.Cursor_SetDepth(*args, **kwargs)
  1424.  
  1425.     
  1426.     def SetSize(*args, **kwargs):
  1427.         '''SetSize(self, Size size)'''
  1428.         return _gdi_.Cursor_SetSize(*args, **kwargs)
  1429.  
  1430.  
  1431.  
  1432. class CursorPtr(Cursor):
  1433.     
  1434.     def __init__(self, this):
  1435.         self.this = this
  1436.         if not hasattr(self, 'thisown'):
  1437.             self.thisown = 0
  1438.         
  1439.         self.__class__ = Cursor
  1440.  
  1441.  
  1442. _gdi_.Cursor_swigregister(CursorPtr)
  1443.  
  1444. def StockCursor(*args, **kwargs):
  1445.     '''
  1446.     StockCursor(int id) -> Cursor
  1447.  
  1448.     Create a cursor using one of the stock cursors.  Note that not all
  1449.     stock cursors are available on all platforms.
  1450.     '''
  1451.     val = _gdi_.new_StockCursor(*args, **kwargs)
  1452.     val.thisown = 1
  1453.     return val
  1454.  
  1455.  
  1456. def CursorFromImage(*args, **kwargs):
  1457.     '''
  1458.     CursorFromImage(Image image) -> Cursor
  1459.  
  1460.     Constructs a cursor from a `wx.Image`. The mask (if any) will be used
  1461.     for setting the transparent portions of the cursor.
  1462.     '''
  1463.     val = _gdi_.new_CursorFromImage(*args, **kwargs)
  1464.     val.thisown = 1
  1465.     return val
  1466.  
  1467. OutRegion = _gdi_.OutRegion
  1468. PartRegion = _gdi_.PartRegion
  1469. InRegion = _gdi_.InRegion
  1470.  
  1471. class Region(GDIObject):
  1472.     '''Proxy of C++ Region class'''
  1473.     
  1474.     def __repr__(self):
  1475.         return '<%s.%s; proxy of C++ wxRegion instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1476.  
  1477.     
  1478.     def __init__(self, *args, **kwargs):
  1479.         '''__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region'''
  1480.         newobj = _gdi_.new_Region(*args, **kwargs)
  1481.         self.this = newobj.this
  1482.         self.thisown = 1
  1483.         del newobj.thisown
  1484.  
  1485.     
  1486.     def __del__(self, destroy = _gdi_.delete_Region):
  1487.         '''__del__(self)'''
  1488.         
  1489.         try:
  1490.             if self.thisown:
  1491.                 destroy(self)
  1492.         except:
  1493.             pass
  1494.  
  1495.  
  1496.     
  1497.     def Clear(*args, **kwargs):
  1498.         '''Clear(self)'''
  1499.         return _gdi_.Region_Clear(*args, **kwargs)
  1500.  
  1501.     
  1502.     def Offset(*args, **kwargs):
  1503.         '''Offset(self, int x, int y) -> bool'''
  1504.         return _gdi_.Region_Offset(*args, **kwargs)
  1505.  
  1506.     
  1507.     def Contains(*args, **kwargs):
  1508.         '''Contains(self, int x, int y) -> int'''
  1509.         return _gdi_.Region_Contains(*args, **kwargs)
  1510.  
  1511.     
  1512.     def ContainsPoint(*args, **kwargs):
  1513.         '''ContainsPoint(self, Point pt) -> int'''
  1514.         return _gdi_.Region_ContainsPoint(*args, **kwargs)
  1515.  
  1516.     
  1517.     def ContainsRect(*args, **kwargs):
  1518.         '''ContainsRect(self, Rect rect) -> int'''
  1519.         return _gdi_.Region_ContainsRect(*args, **kwargs)
  1520.  
  1521.     
  1522.     def ContainsRectDim(*args, **kwargs):
  1523.         '''ContainsRectDim(self, int x, int y, int w, int h) -> int'''
  1524.         return _gdi_.Region_ContainsRectDim(*args, **kwargs)
  1525.  
  1526.     
  1527.     def GetBox(*args, **kwargs):
  1528.         '''GetBox(self) -> Rect'''
  1529.         return _gdi_.Region_GetBox(*args, **kwargs)
  1530.  
  1531.     
  1532.     def Intersect(*args, **kwargs):
  1533.         '''Intersect(self, int x, int y, int width, int height) -> bool'''
  1534.         return _gdi_.Region_Intersect(*args, **kwargs)
  1535.  
  1536.     
  1537.     def IntersectRect(*args, **kwargs):
  1538.         '''IntersectRect(self, Rect rect) -> bool'''
  1539.         return _gdi_.Region_IntersectRect(*args, **kwargs)
  1540.  
  1541.     
  1542.     def IntersectRegion(*args, **kwargs):
  1543.         '''IntersectRegion(self, Region region) -> bool'''
  1544.         return _gdi_.Region_IntersectRegion(*args, **kwargs)
  1545.  
  1546.     
  1547.     def IsEmpty(*args, **kwargs):
  1548.         '''IsEmpty(self) -> bool'''
  1549.         return _gdi_.Region_IsEmpty(*args, **kwargs)
  1550.  
  1551.     
  1552.     def Union(*args, **kwargs):
  1553.         '''Union(self, int x, int y, int width, int height) -> bool'''
  1554.         return _gdi_.Region_Union(*args, **kwargs)
  1555.  
  1556.     
  1557.     def UnionRect(*args, **kwargs):
  1558.         '''UnionRect(self, Rect rect) -> bool'''
  1559.         return _gdi_.Region_UnionRect(*args, **kwargs)
  1560.  
  1561.     
  1562.     def UnionRegion(*args, **kwargs):
  1563.         '''UnionRegion(self, Region region) -> bool'''
  1564.         return _gdi_.Region_UnionRegion(*args, **kwargs)
  1565.  
  1566.     
  1567.     def Subtract(*args, **kwargs):
  1568.         '''Subtract(self, int x, int y, int width, int height) -> bool'''
  1569.         return _gdi_.Region_Subtract(*args, **kwargs)
  1570.  
  1571.     
  1572.     def SubtractRect(*args, **kwargs):
  1573.         '''SubtractRect(self, Rect rect) -> bool'''
  1574.         return _gdi_.Region_SubtractRect(*args, **kwargs)
  1575.  
  1576.     
  1577.     def SubtractRegion(*args, **kwargs):
  1578.         '''SubtractRegion(self, Region region) -> bool'''
  1579.         return _gdi_.Region_SubtractRegion(*args, **kwargs)
  1580.  
  1581.     
  1582.     def Xor(*args, **kwargs):
  1583.         '''Xor(self, int x, int y, int width, int height) -> bool'''
  1584.         return _gdi_.Region_Xor(*args, **kwargs)
  1585.  
  1586.     
  1587.     def XorRect(*args, **kwargs):
  1588.         '''XorRect(self, Rect rect) -> bool'''
  1589.         return _gdi_.Region_XorRect(*args, **kwargs)
  1590.  
  1591.     
  1592.     def XorRegion(*args, **kwargs):
  1593.         '''XorRegion(self, Region region) -> bool'''
  1594.         return _gdi_.Region_XorRegion(*args, **kwargs)
  1595.  
  1596.     
  1597.     def ConvertToBitmap(*args, **kwargs):
  1598.         '''ConvertToBitmap(self) -> Bitmap'''
  1599.         return _gdi_.Region_ConvertToBitmap(*args, **kwargs)
  1600.  
  1601.     
  1602.     def UnionBitmap(*args, **kwargs):
  1603.         '''UnionBitmap(self, Bitmap bmp) -> bool'''
  1604.         return _gdi_.Region_UnionBitmap(*args, **kwargs)
  1605.  
  1606.     
  1607.     def UnionBitmapColour(*args, **kwargs):
  1608.         '''UnionBitmapColour(self, Bitmap bmp, Colour transColour, int tolerance=0) -> bool'''
  1609.         return _gdi_.Region_UnionBitmapColour(*args, **kwargs)
  1610.  
  1611.  
  1612.  
  1613. class RegionPtr(Region):
  1614.     
  1615.     def __init__(self, this):
  1616.         self.this = this
  1617.         if not hasattr(self, 'thisown'):
  1618.             self.thisown = 0
  1619.         
  1620.         self.__class__ = Region
  1621.  
  1622.  
  1623. _gdi_.Region_swigregister(RegionPtr)
  1624.  
  1625. def RegionFromBitmap(*args, **kwargs):
  1626.     '''RegionFromBitmap(Bitmap bmp) -> Region'''
  1627.     val = _gdi_.new_RegionFromBitmap(*args, **kwargs)
  1628.     val.thisown = 1
  1629.     return val
  1630.  
  1631.  
  1632. def RegionFromBitmapColour(*args, **kwargs):
  1633.     '''RegionFromBitmapColour(Bitmap bmp, Colour transColour, int tolerance=0) -> Region'''
  1634.     val = _gdi_.new_RegionFromBitmapColour(*args, **kwargs)
  1635.     val.thisown = 1
  1636.     return val
  1637.  
  1638.  
  1639. def RegionFromPoints(*args, **kwargs):
  1640.     '''RegionFromPoints(int points, int fillStyle=WINDING_RULE) -> Region'''
  1641.     val = _gdi_.new_RegionFromPoints(*args, **kwargs)
  1642.     val.thisown = 1
  1643.     return val
  1644.  
  1645.  
  1646. class RegionIterator(_core.Object):
  1647.     '''Proxy of C++ RegionIterator class'''
  1648.     
  1649.     def __repr__(self):
  1650.         return '<%s.%s; proxy of C++ wxRegionIterator instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1651.  
  1652.     
  1653.     def __init__(self, *args, **kwargs):
  1654.         '''__init__(self, Region region) -> RegionIterator'''
  1655.         newobj = _gdi_.new_RegionIterator(*args, **kwargs)
  1656.         self.this = newobj.this
  1657.         self.thisown = 1
  1658.         del newobj.thisown
  1659.  
  1660.     
  1661.     def __del__(self, destroy = _gdi_.delete_RegionIterator):
  1662.         '''__del__(self)'''
  1663.         
  1664.         try:
  1665.             if self.thisown:
  1666.                 destroy(self)
  1667.         except:
  1668.             pass
  1669.  
  1670.  
  1671.     
  1672.     def GetX(*args, **kwargs):
  1673.         '''GetX(self) -> int'''
  1674.         return _gdi_.RegionIterator_GetX(*args, **kwargs)
  1675.  
  1676.     
  1677.     def GetY(*args, **kwargs):
  1678.         '''GetY(self) -> int'''
  1679.         return _gdi_.RegionIterator_GetY(*args, **kwargs)
  1680.  
  1681.     
  1682.     def GetW(*args, **kwargs):
  1683.         '''GetW(self) -> int'''
  1684.         return _gdi_.RegionIterator_GetW(*args, **kwargs)
  1685.  
  1686.     
  1687.     def GetWidth(*args, **kwargs):
  1688.         '''GetWidth(self) -> int'''
  1689.         return _gdi_.RegionIterator_GetWidth(*args, **kwargs)
  1690.  
  1691.     
  1692.     def GetH(*args, **kwargs):
  1693.         '''GetH(self) -> int'''
  1694.         return _gdi_.RegionIterator_GetH(*args, **kwargs)
  1695.  
  1696.     
  1697.     def GetHeight(*args, **kwargs):
  1698.         '''GetHeight(self) -> int'''
  1699.         return _gdi_.RegionIterator_GetHeight(*args, **kwargs)
  1700.  
  1701.     
  1702.     def GetRect(*args, **kwargs):
  1703.         '''GetRect(self) -> Rect'''
  1704.         return _gdi_.RegionIterator_GetRect(*args, **kwargs)
  1705.  
  1706.     
  1707.     def HaveRects(*args, **kwargs):
  1708.         '''HaveRects(self) -> bool'''
  1709.         return _gdi_.RegionIterator_HaveRects(*args, **kwargs)
  1710.  
  1711.     
  1712.     def Reset(*args, **kwargs):
  1713.         '''Reset(self)'''
  1714.         return _gdi_.RegionIterator_Reset(*args, **kwargs)
  1715.  
  1716.     
  1717.     def Next(*args, **kwargs):
  1718.         '''Next(self)'''
  1719.         return _gdi_.RegionIterator_Next(*args, **kwargs)
  1720.  
  1721.     
  1722.     def __nonzero__(*args, **kwargs):
  1723.         '''__nonzero__(self) -> bool'''
  1724.         return _gdi_.RegionIterator___nonzero__(*args, **kwargs)
  1725.  
  1726.  
  1727.  
  1728. class RegionIteratorPtr(RegionIterator):
  1729.     
  1730.     def __init__(self, this):
  1731.         self.this = this
  1732.         if not hasattr(self, 'thisown'):
  1733.             self.thisown = 0
  1734.         
  1735.         self.__class__ = RegionIterator
  1736.  
  1737.  
  1738. _gdi_.RegionIterator_swigregister(RegionIteratorPtr)
  1739. FONTFAMILY_DEFAULT = _gdi_.FONTFAMILY_DEFAULT
  1740. FONTFAMILY_DECORATIVE = _gdi_.FONTFAMILY_DECORATIVE
  1741. FONTFAMILY_ROMAN = _gdi_.FONTFAMILY_ROMAN
  1742. FONTFAMILY_SCRIPT = _gdi_.FONTFAMILY_SCRIPT
  1743. FONTFAMILY_SWISS = _gdi_.FONTFAMILY_SWISS
  1744. FONTFAMILY_MODERN = _gdi_.FONTFAMILY_MODERN
  1745. FONTFAMILY_TELETYPE = _gdi_.FONTFAMILY_TELETYPE
  1746. FONTFAMILY_MAX = _gdi_.FONTFAMILY_MAX
  1747. FONTFAMILY_UNKNOWN = _gdi_.FONTFAMILY_UNKNOWN
  1748. FONTSTYLE_NORMAL = _gdi_.FONTSTYLE_NORMAL
  1749. FONTSTYLE_ITALIC = _gdi_.FONTSTYLE_ITALIC
  1750. FONTSTYLE_SLANT = _gdi_.FONTSTYLE_SLANT
  1751. FONTSTYLE_MAX = _gdi_.FONTSTYLE_MAX
  1752. FONTWEIGHT_NORMAL = _gdi_.FONTWEIGHT_NORMAL
  1753. FONTWEIGHT_LIGHT = _gdi_.FONTWEIGHT_LIGHT
  1754. FONTWEIGHT_BOLD = _gdi_.FONTWEIGHT_BOLD
  1755. FONTWEIGHT_MAX = _gdi_.FONTWEIGHT_MAX
  1756. FONTFLAG_DEFAULT = _gdi_.FONTFLAG_DEFAULT
  1757. FONTFLAG_ITALIC = _gdi_.FONTFLAG_ITALIC
  1758. FONTFLAG_SLANT = _gdi_.FONTFLAG_SLANT
  1759. FONTFLAG_LIGHT = _gdi_.FONTFLAG_LIGHT
  1760. FONTFLAG_BOLD = _gdi_.FONTFLAG_BOLD
  1761. FONTFLAG_ANTIALIASED = _gdi_.FONTFLAG_ANTIALIASED
  1762. FONTFLAG_NOT_ANTIALIASED = _gdi_.FONTFLAG_NOT_ANTIALIASED
  1763. FONTFLAG_UNDERLINED = _gdi_.FONTFLAG_UNDERLINED
  1764. FONTFLAG_STRIKETHROUGH = _gdi_.FONTFLAG_STRIKETHROUGH
  1765. FONTFLAG_MASK = _gdi_.FONTFLAG_MASK
  1766. FONTENCODING_SYSTEM = _gdi_.FONTENCODING_SYSTEM
  1767. FONTENCODING_DEFAULT = _gdi_.FONTENCODING_DEFAULT
  1768. FONTENCODING_ISO8859_1 = _gdi_.FONTENCODING_ISO8859_1
  1769. FONTENCODING_ISO8859_2 = _gdi_.FONTENCODING_ISO8859_2
  1770. FONTENCODING_ISO8859_3 = _gdi_.FONTENCODING_ISO8859_3
  1771. FONTENCODING_ISO8859_4 = _gdi_.FONTENCODING_ISO8859_4
  1772. FONTENCODING_ISO8859_5 = _gdi_.FONTENCODING_ISO8859_5
  1773. FONTENCODING_ISO8859_6 = _gdi_.FONTENCODING_ISO8859_6
  1774. FONTENCODING_ISO8859_7 = _gdi_.FONTENCODING_ISO8859_7
  1775. FONTENCODING_ISO8859_8 = _gdi_.FONTENCODING_ISO8859_8
  1776. FONTENCODING_ISO8859_9 = _gdi_.FONTENCODING_ISO8859_9
  1777. FONTENCODING_ISO8859_10 = _gdi_.FONTENCODING_ISO8859_10
  1778. FONTENCODING_ISO8859_11 = _gdi_.FONTENCODING_ISO8859_11
  1779. FONTENCODING_ISO8859_12 = _gdi_.FONTENCODING_ISO8859_12
  1780. FONTENCODING_ISO8859_13 = _gdi_.FONTENCODING_ISO8859_13
  1781. FONTENCODING_ISO8859_14 = _gdi_.FONTENCODING_ISO8859_14
  1782. FONTENCODING_ISO8859_15 = _gdi_.FONTENCODING_ISO8859_15
  1783. FONTENCODING_ISO8859_MAX = _gdi_.FONTENCODING_ISO8859_MAX
  1784. FONTENCODING_KOI8 = _gdi_.FONTENCODING_KOI8
  1785. FONTENCODING_KOI8_U = _gdi_.FONTENCODING_KOI8_U
  1786. FONTENCODING_ALTERNATIVE = _gdi_.FONTENCODING_ALTERNATIVE
  1787. FONTENCODING_BULGARIAN = _gdi_.FONTENCODING_BULGARIAN
  1788. FONTENCODING_CP437 = _gdi_.FONTENCODING_CP437
  1789. FONTENCODING_CP850 = _gdi_.FONTENCODING_CP850
  1790. FONTENCODING_CP852 = _gdi_.FONTENCODING_CP852
  1791. FONTENCODING_CP855 = _gdi_.FONTENCODING_CP855
  1792. FONTENCODING_CP866 = _gdi_.FONTENCODING_CP866
  1793. FONTENCODING_CP874 = _gdi_.FONTENCODING_CP874
  1794. FONTENCODING_CP932 = _gdi_.FONTENCODING_CP932
  1795. FONTENCODING_CP936 = _gdi_.FONTENCODING_CP936
  1796. FONTENCODING_CP949 = _gdi_.FONTENCODING_CP949
  1797. FONTENCODING_CP950 = _gdi_.FONTENCODING_CP950
  1798. FONTENCODING_CP1250 = _gdi_.FONTENCODING_CP1250
  1799. FONTENCODING_CP1251 = _gdi_.FONTENCODING_CP1251
  1800. FONTENCODING_CP1252 = _gdi_.FONTENCODING_CP1252
  1801. FONTENCODING_CP1253 = _gdi_.FONTENCODING_CP1253
  1802. FONTENCODING_CP1254 = _gdi_.FONTENCODING_CP1254
  1803. FONTENCODING_CP1255 = _gdi_.FONTENCODING_CP1255
  1804. FONTENCODING_CP1256 = _gdi_.FONTENCODING_CP1256
  1805. FONTENCODING_CP1257 = _gdi_.FONTENCODING_CP1257
  1806. FONTENCODING_CP12_MAX = _gdi_.FONTENCODING_CP12_MAX
  1807. FONTENCODING_UTF7 = _gdi_.FONTENCODING_UTF7
  1808. FONTENCODING_UTF8 = _gdi_.FONTENCODING_UTF8
  1809. FONTENCODING_EUC_JP = _gdi_.FONTENCODING_EUC_JP
  1810. FONTENCODING_UTF16BE = _gdi_.FONTENCODING_UTF16BE
  1811. FONTENCODING_UTF16LE = _gdi_.FONTENCODING_UTF16LE
  1812. FONTENCODING_UTF32BE = _gdi_.FONTENCODING_UTF32BE
  1813. FONTENCODING_UTF32LE = _gdi_.FONTENCODING_UTF32LE
  1814. FONTENCODING_MACROMAN = _gdi_.FONTENCODING_MACROMAN
  1815. FONTENCODING_MACJAPANESE = _gdi_.FONTENCODING_MACJAPANESE
  1816. FONTENCODING_MACCHINESETRAD = _gdi_.FONTENCODING_MACCHINESETRAD
  1817. FONTENCODING_MACKOREAN = _gdi_.FONTENCODING_MACKOREAN
  1818. FONTENCODING_MACARABIC = _gdi_.FONTENCODING_MACARABIC
  1819. FONTENCODING_MACHEBREW = _gdi_.FONTENCODING_MACHEBREW
  1820. FONTENCODING_MACGREEK = _gdi_.FONTENCODING_MACGREEK
  1821. FONTENCODING_MACCYRILLIC = _gdi_.FONTENCODING_MACCYRILLIC
  1822. FONTENCODING_MACDEVANAGARI = _gdi_.FONTENCODING_MACDEVANAGARI
  1823. FONTENCODING_MACGURMUKHI = _gdi_.FONTENCODING_MACGURMUKHI
  1824. FONTENCODING_MACGUJARATI = _gdi_.FONTENCODING_MACGUJARATI
  1825. FONTENCODING_MACORIYA = _gdi_.FONTENCODING_MACORIYA
  1826. FONTENCODING_MACBENGALI = _gdi_.FONTENCODING_MACBENGALI
  1827. FONTENCODING_MACTAMIL = _gdi_.FONTENCODING_MACTAMIL
  1828. FONTENCODING_MACTELUGU = _gdi_.FONTENCODING_MACTELUGU
  1829. FONTENCODING_MACKANNADA = _gdi_.FONTENCODING_MACKANNADA
  1830. FONTENCODING_MACMALAJALAM = _gdi_.FONTENCODING_MACMALAJALAM
  1831. FONTENCODING_MACSINHALESE = _gdi_.FONTENCODING_MACSINHALESE
  1832. FONTENCODING_MACBURMESE = _gdi_.FONTENCODING_MACBURMESE
  1833. FONTENCODING_MACKHMER = _gdi_.FONTENCODING_MACKHMER
  1834. FONTENCODING_MACTHAI = _gdi_.FONTENCODING_MACTHAI
  1835. FONTENCODING_MACLAOTIAN = _gdi_.FONTENCODING_MACLAOTIAN
  1836. FONTENCODING_MACGEORGIAN = _gdi_.FONTENCODING_MACGEORGIAN
  1837. FONTENCODING_MACARMENIAN = _gdi_.FONTENCODING_MACARMENIAN
  1838. FONTENCODING_MACCHINESESIMP = _gdi_.FONTENCODING_MACCHINESESIMP
  1839. FONTENCODING_MACTIBETAN = _gdi_.FONTENCODING_MACTIBETAN
  1840. FONTENCODING_MACMONGOLIAN = _gdi_.FONTENCODING_MACMONGOLIAN
  1841. FONTENCODING_MACETHIOPIC = _gdi_.FONTENCODING_MACETHIOPIC
  1842. FONTENCODING_MACCENTRALEUR = _gdi_.FONTENCODING_MACCENTRALEUR
  1843. FONTENCODING_MACVIATNAMESE = _gdi_.FONTENCODING_MACVIATNAMESE
  1844. FONTENCODING_MACARABICEXT = _gdi_.FONTENCODING_MACARABICEXT
  1845. FONTENCODING_MACSYMBOL = _gdi_.FONTENCODING_MACSYMBOL
  1846. FONTENCODING_MACDINGBATS = _gdi_.FONTENCODING_MACDINGBATS
  1847. FONTENCODING_MACTURKISH = _gdi_.FONTENCODING_MACTURKISH
  1848. FONTENCODING_MACCROATIAN = _gdi_.FONTENCODING_MACCROATIAN
  1849. FONTENCODING_MACICELANDIC = _gdi_.FONTENCODING_MACICELANDIC
  1850. FONTENCODING_MACROMANIAN = _gdi_.FONTENCODING_MACROMANIAN
  1851. FONTENCODING_MACCELTIC = _gdi_.FONTENCODING_MACCELTIC
  1852. FONTENCODING_MACGAELIC = _gdi_.FONTENCODING_MACGAELIC
  1853. FONTENCODING_MACKEYBOARD = _gdi_.FONTENCODING_MACKEYBOARD
  1854. FONTENCODING_MACMIN = _gdi_.FONTENCODING_MACMIN
  1855. FONTENCODING_MACMAX = _gdi_.FONTENCODING_MACMAX
  1856. FONTENCODING_MAX = _gdi_.FONTENCODING_MAX
  1857. FONTENCODING_UTF16 = _gdi_.FONTENCODING_UTF16
  1858. FONTENCODING_UTF32 = _gdi_.FONTENCODING_UTF32
  1859. FONTENCODING_UNICODE = _gdi_.FONTENCODING_UNICODE
  1860. FONTENCODING_GB2312 = _gdi_.FONTENCODING_GB2312
  1861. FONTENCODING_BIG5 = _gdi_.FONTENCODING_BIG5
  1862. FONTENCODING_SHIFT_JIS = _gdi_.FONTENCODING_SHIFT_JIS
  1863.  
  1864. class NativeFontInfo(object):
  1865.     '''Proxy of C++ NativeFontInfo class'''
  1866.     
  1867.     def __repr__(self):
  1868.         return '<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1869.  
  1870.     
  1871.     def __init__(self, *args, **kwargs):
  1872.         '''__init__(self) -> NativeFontInfo'''
  1873.         newobj = _gdi_.new_NativeFontInfo(*args, **kwargs)
  1874.         self.this = newobj.this
  1875.         self.thisown = 1
  1876.         del newobj.thisown
  1877.  
  1878.     
  1879.     def __del__(self, destroy = _gdi_.delete_NativeFontInfo):
  1880.         '''__del__(self)'''
  1881.         
  1882.         try:
  1883.             if self.thisown:
  1884.                 destroy(self)
  1885.         except:
  1886.             pass
  1887.  
  1888.  
  1889.     
  1890.     def Init(*args, **kwargs):
  1891.         '''Init(self)'''
  1892.         return _gdi_.NativeFontInfo_Init(*args, **kwargs)
  1893.  
  1894.     
  1895.     def InitFromFont(*args, **kwargs):
  1896.         '''InitFromFont(self, Font font)'''
  1897.         return _gdi_.NativeFontInfo_InitFromFont(*args, **kwargs)
  1898.  
  1899.     
  1900.     def GetPointSize(*args, **kwargs):
  1901.         '''GetPointSize(self) -> int'''
  1902.         return _gdi_.NativeFontInfo_GetPointSize(*args, **kwargs)
  1903.  
  1904.     
  1905.     def GetPixelSize(*args, **kwargs):
  1906.         '''GetPixelSize(self) -> Size'''
  1907.         return _gdi_.NativeFontInfo_GetPixelSize(*args, **kwargs)
  1908.  
  1909.     
  1910.     def GetStyle(*args, **kwargs):
  1911.         '''GetStyle(self) -> int'''
  1912.         return _gdi_.NativeFontInfo_GetStyle(*args, **kwargs)
  1913.  
  1914.     
  1915.     def GetWeight(*args, **kwargs):
  1916.         '''GetWeight(self) -> int'''
  1917.         return _gdi_.NativeFontInfo_GetWeight(*args, **kwargs)
  1918.  
  1919.     
  1920.     def GetUnderlined(*args, **kwargs):
  1921.         '''GetUnderlined(self) -> bool'''
  1922.         return _gdi_.NativeFontInfo_GetUnderlined(*args, **kwargs)
  1923.  
  1924.     
  1925.     def GetFaceName(*args, **kwargs):
  1926.         '''GetFaceName(self) -> String'''
  1927.         return _gdi_.NativeFontInfo_GetFaceName(*args, **kwargs)
  1928.  
  1929.     
  1930.     def GetFamily(*args, **kwargs):
  1931.         '''GetFamily(self) -> int'''
  1932.         return _gdi_.NativeFontInfo_GetFamily(*args, **kwargs)
  1933.  
  1934.     
  1935.     def GetEncoding(*args, **kwargs):
  1936.         '''GetEncoding(self) -> int'''
  1937.         return _gdi_.NativeFontInfo_GetEncoding(*args, **kwargs)
  1938.  
  1939.     
  1940.     def SetPointSize(*args, **kwargs):
  1941.         '''SetPointSize(self, int pointsize)'''
  1942.         return _gdi_.NativeFontInfo_SetPointSize(*args, **kwargs)
  1943.  
  1944.     
  1945.     def SetPixelSize(*args, **kwargs):
  1946.         '''SetPixelSize(self, Size pixelSize)'''
  1947.         return _gdi_.NativeFontInfo_SetPixelSize(*args, **kwargs)
  1948.  
  1949.     
  1950.     def SetStyle(*args, **kwargs):
  1951.         '''SetStyle(self, int style)'''
  1952.         return _gdi_.NativeFontInfo_SetStyle(*args, **kwargs)
  1953.  
  1954.     
  1955.     def SetWeight(*args, **kwargs):
  1956.         '''SetWeight(self, int weight)'''
  1957.         return _gdi_.NativeFontInfo_SetWeight(*args, **kwargs)
  1958.  
  1959.     
  1960.     def SetUnderlined(*args, **kwargs):
  1961.         '''SetUnderlined(self, bool underlined)'''
  1962.         return _gdi_.NativeFontInfo_SetUnderlined(*args, **kwargs)
  1963.  
  1964.     
  1965.     def SetFaceName(*args, **kwargs):
  1966.         '''SetFaceName(self, String facename)'''
  1967.         return _gdi_.NativeFontInfo_SetFaceName(*args, **kwargs)
  1968.  
  1969.     
  1970.     def SetFamily(*args, **kwargs):
  1971.         '''SetFamily(self, int family)'''
  1972.         return _gdi_.NativeFontInfo_SetFamily(*args, **kwargs)
  1973.  
  1974.     
  1975.     def SetEncoding(*args, **kwargs):
  1976.         '''SetEncoding(self, int encoding)'''
  1977.         return _gdi_.NativeFontInfo_SetEncoding(*args, **kwargs)
  1978.  
  1979.     
  1980.     def FromString(*args, **kwargs):
  1981.         '''FromString(self, String s) -> bool'''
  1982.         return _gdi_.NativeFontInfo_FromString(*args, **kwargs)
  1983.  
  1984.     
  1985.     def ToString(*args, **kwargs):
  1986.         '''ToString(self) -> String'''
  1987.         return _gdi_.NativeFontInfo_ToString(*args, **kwargs)
  1988.  
  1989.     
  1990.     def __str__(*args, **kwargs):
  1991.         '''__str__(self) -> String'''
  1992.         return _gdi_.NativeFontInfo___str__(*args, **kwargs)
  1993.  
  1994.     
  1995.     def FromUserString(*args, **kwargs):
  1996.         '''FromUserString(self, String s) -> bool'''
  1997.         return _gdi_.NativeFontInfo_FromUserString(*args, **kwargs)
  1998.  
  1999.     
  2000.     def ToUserString(*args, **kwargs):
  2001.         '''ToUserString(self) -> String'''
  2002.         return _gdi_.NativeFontInfo_ToUserString(*args, **kwargs)
  2003.  
  2004.  
  2005.  
  2006. class NativeFontInfoPtr(NativeFontInfo):
  2007.     
  2008.     def __init__(self, this):
  2009.         self.this = this
  2010.         if not hasattr(self, 'thisown'):
  2011.             self.thisown = 0
  2012.         
  2013.         self.__class__ = NativeFontInfo
  2014.  
  2015.  
  2016. _gdi_.NativeFontInfo_swigregister(NativeFontInfoPtr)
  2017.  
  2018. class NativeEncodingInfo(object):
  2019.     '''Proxy of C++ NativeEncodingInfo class'''
  2020.     
  2021.     def __repr__(self):
  2022.         return '<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2023.  
  2024.     facename = property(_gdi_.NativeEncodingInfo_facename_get, _gdi_.NativeEncodingInfo_facename_set)
  2025.     encoding = property(_gdi_.NativeEncodingInfo_encoding_get, _gdi_.NativeEncodingInfo_encoding_set)
  2026.     
  2027.     def __init__(self, *args, **kwargs):
  2028.         '''__init__(self) -> NativeEncodingInfo'''
  2029.         newobj = _gdi_.new_NativeEncodingInfo(*args, **kwargs)
  2030.         self.this = newobj.this
  2031.         self.thisown = 1
  2032.         del newobj.thisown
  2033.  
  2034.     
  2035.     def __del__(self, destroy = _gdi_.delete_NativeEncodingInfo):
  2036.         '''__del__(self)'''
  2037.         
  2038.         try:
  2039.             if self.thisown:
  2040.                 destroy(self)
  2041.         except:
  2042.             pass
  2043.  
  2044.  
  2045.     
  2046.     def FromString(*args, **kwargs):
  2047.         '''FromString(self, String s) -> bool'''
  2048.         return _gdi_.NativeEncodingInfo_FromString(*args, **kwargs)
  2049.  
  2050.     
  2051.     def ToString(*args, **kwargs):
  2052.         '''ToString(self) -> String'''
  2053.         return _gdi_.NativeEncodingInfo_ToString(*args, **kwargs)
  2054.  
  2055.  
  2056.  
  2057. class NativeEncodingInfoPtr(NativeEncodingInfo):
  2058.     
  2059.     def __init__(self, this):
  2060.         self.this = this
  2061.         if not hasattr(self, 'thisown'):
  2062.             self.thisown = 0
  2063.         
  2064.         self.__class__ = NativeEncodingInfo
  2065.  
  2066.  
  2067. _gdi_.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr)
  2068.  
  2069. def GetNativeFontEncoding(*args, **kwargs):
  2070.     '''GetNativeFontEncoding(int encoding) -> NativeEncodingInfo'''
  2071.     return _gdi_.GetNativeFontEncoding(*args, **kwargs)
  2072.  
  2073.  
  2074. def TestFontEncoding(*args, **kwargs):
  2075.     '''TestFontEncoding(NativeEncodingInfo info) -> bool'''
  2076.     return _gdi_.TestFontEncoding(*args, **kwargs)
  2077.  
  2078.  
  2079. class FontMapper(object):
  2080.     '''Proxy of C++ FontMapper class'''
  2081.     
  2082.     def __repr__(self):
  2083.         return '<%s.%s; proxy of C++ wxFontMapper instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2084.  
  2085.     
  2086.     def __init__(self, *args, **kwargs):
  2087.         '''__init__(self) -> FontMapper'''
  2088.         newobj = _gdi_.new_FontMapper(*args, **kwargs)
  2089.         self.this = newobj.this
  2090.         self.thisown = 1
  2091.         del newobj.thisown
  2092.  
  2093.     
  2094.     def __del__(self, destroy = _gdi_.delete_FontMapper):
  2095.         '''__del__(self)'''
  2096.         
  2097.         try:
  2098.             if self.thisown:
  2099.                 destroy(self)
  2100.         except:
  2101.             pass
  2102.  
  2103.  
  2104.     
  2105.     def Get(*args, **kwargs):
  2106.         '''Get() -> FontMapper'''
  2107.         return _gdi_.FontMapper_Get(*args, **kwargs)
  2108.  
  2109.     Get = staticmethod(Get)
  2110.     
  2111.     def Set(*args, **kwargs):
  2112.         '''Set(FontMapper mapper) -> FontMapper'''
  2113.         return _gdi_.FontMapper_Set(*args, **kwargs)
  2114.  
  2115.     Set = staticmethod(Set)
  2116.     
  2117.     def CharsetToEncoding(*args, **kwargs):
  2118.         '''CharsetToEncoding(self, String charset, bool interactive=True) -> int'''
  2119.         return _gdi_.FontMapper_CharsetToEncoding(*args, **kwargs)
  2120.  
  2121.     
  2122.     def GetSupportedEncodingsCount(*args, **kwargs):
  2123.         '''GetSupportedEncodingsCount() -> size_t'''
  2124.         return _gdi_.FontMapper_GetSupportedEncodingsCount(*args, **kwargs)
  2125.  
  2126.     GetSupportedEncodingsCount = staticmethod(GetSupportedEncodingsCount)
  2127.     
  2128.     def GetEncoding(*args, **kwargs):
  2129.         '''GetEncoding(size_t n) -> int'''
  2130.         return _gdi_.FontMapper_GetEncoding(*args, **kwargs)
  2131.  
  2132.     GetEncoding = staticmethod(GetEncoding)
  2133.     
  2134.     def GetEncodingName(*args, **kwargs):
  2135.         '''GetEncodingName(int encoding) -> String'''
  2136.         return _gdi_.FontMapper_GetEncodingName(*args, **kwargs)
  2137.  
  2138.     GetEncodingName = staticmethod(GetEncodingName)
  2139.     
  2140.     def GetEncodingDescription(*args, **kwargs):
  2141.         '''GetEncodingDescription(int encoding) -> String'''
  2142.         return _gdi_.FontMapper_GetEncodingDescription(*args, **kwargs)
  2143.  
  2144.     GetEncodingDescription = staticmethod(GetEncodingDescription)
  2145.     
  2146.     def GetEncodingFromName(*args, **kwargs):
  2147.         '''GetEncodingFromName(String name) -> int'''
  2148.         return _gdi_.FontMapper_GetEncodingFromName(*args, **kwargs)
  2149.  
  2150.     GetEncodingFromName = staticmethod(GetEncodingFromName)
  2151.     
  2152.     def SetConfig(*args, **kwargs):
  2153.         '''SetConfig(self, ConfigBase config)'''
  2154.         return _gdi_.FontMapper_SetConfig(*args, **kwargs)
  2155.  
  2156.     SetConfig = wx._deprecated(SetConfig, 'Set a config object for the whole app instead, with `wx.Config.Set`.')
  2157.     
  2158.     def SetConfigPath(*args, **kwargs):
  2159.         '''SetConfigPath(self, String prefix)'''
  2160.         return _gdi_.FontMapper_SetConfigPath(*args, **kwargs)
  2161.  
  2162.     
  2163.     def GetDefaultConfigPath(*args, **kwargs):
  2164.         '''GetDefaultConfigPath() -> String'''
  2165.         return _gdi_.FontMapper_GetDefaultConfigPath(*args, **kwargs)
  2166.  
  2167.     GetDefaultConfigPath = staticmethod(GetDefaultConfigPath)
  2168.     
  2169.     def GetAltForEncoding(*args, **kwargs):
  2170.         '''GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject'''
  2171.         return _gdi_.FontMapper_GetAltForEncoding(*args, **kwargs)
  2172.  
  2173.     
  2174.     def IsEncodingAvailable(*args, **kwargs):
  2175.         '''IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool'''
  2176.         return _gdi_.FontMapper_IsEncodingAvailable(*args, **kwargs)
  2177.  
  2178.     
  2179.     def SetDialogParent(*args, **kwargs):
  2180.         '''SetDialogParent(self, Window parent)'''
  2181.         return _gdi_.FontMapper_SetDialogParent(*args, **kwargs)
  2182.  
  2183.     
  2184.     def SetDialogTitle(*args, **kwargs):
  2185.         '''SetDialogTitle(self, String title)'''
  2186.         return _gdi_.FontMapper_SetDialogTitle(*args, **kwargs)
  2187.  
  2188.  
  2189.  
  2190. class FontMapperPtr(FontMapper):
  2191.     
  2192.     def __init__(self, this):
  2193.         self.this = this
  2194.         if not hasattr(self, 'thisown'):
  2195.             self.thisown = 0
  2196.         
  2197.         self.__class__ = FontMapper
  2198.  
  2199.  
  2200. _gdi_.FontMapper_swigregister(FontMapperPtr)
  2201.  
  2202. def FontMapper_Get(*args, **kwargs):
  2203.     '''FontMapper_Get() -> FontMapper'''
  2204.     return _gdi_.FontMapper_Get(*args, **kwargs)
  2205.  
  2206.  
  2207. def FontMapper_Set(*args, **kwargs):
  2208.     '''FontMapper_Set(FontMapper mapper) -> FontMapper'''
  2209.     return _gdi_.FontMapper_Set(*args, **kwargs)
  2210.  
  2211.  
  2212. def FontMapper_GetSupportedEncodingsCount(*args, **kwargs):
  2213.     '''FontMapper_GetSupportedEncodingsCount() -> size_t'''
  2214.     return _gdi_.FontMapper_GetSupportedEncodingsCount(*args, **kwargs)
  2215.  
  2216.  
  2217. def FontMapper_GetEncoding(*args, **kwargs):
  2218.     '''FontMapper_GetEncoding(size_t n) -> int'''
  2219.     return _gdi_.FontMapper_GetEncoding(*args, **kwargs)
  2220.  
  2221.  
  2222. def FontMapper_GetEncodingName(*args, **kwargs):
  2223.     '''FontMapper_GetEncodingName(int encoding) -> String'''
  2224.     return _gdi_.FontMapper_GetEncodingName(*args, **kwargs)
  2225.  
  2226.  
  2227. def FontMapper_GetEncodingDescription(*args, **kwargs):
  2228.     '''FontMapper_GetEncodingDescription(int encoding) -> String'''
  2229.     return _gdi_.FontMapper_GetEncodingDescription(*args, **kwargs)
  2230.  
  2231.  
  2232. def FontMapper_GetEncodingFromName(*args, **kwargs):
  2233.     '''FontMapper_GetEncodingFromName(String name) -> int'''
  2234.     return _gdi_.FontMapper_GetEncodingFromName(*args, **kwargs)
  2235.  
  2236.  
  2237. def FontMapper_GetDefaultConfigPath(*args, **kwargs):
  2238.     '''FontMapper_GetDefaultConfigPath() -> String'''
  2239.     return _gdi_.FontMapper_GetDefaultConfigPath(*args, **kwargs)
  2240.  
  2241.  
  2242. class Font(GDIObject):
  2243.     """
  2244.     A font is an object which determines the appearance of text. Fonts are
  2245.     used for drawing text to a device context, and setting the appearance
  2246.     of a window's text.
  2247.  
  2248.     You can retrieve the current system font settings with `wx.SystemSettings`.
  2249.     """
  2250.     
  2251.     def __repr__(self):
  2252.         return '<%s.%s; proxy of C++ wxFont instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2253.  
  2254.     
  2255.     def __init__(self, *args, **kwargs):
  2256.         """
  2257.         __init__(self, int pointSize, int family, int style, int weight, bool underline=False, 
  2258.             String face=EmptyString, 
  2259.             int encoding=FONTENCODING_DEFAULT) -> Font
  2260.  
  2261.         Creates a font object with the specified attributes.
  2262.  
  2263.             :param pointSize:  The size of the font in points.
  2264.  
  2265.             :param family: Font family.  A generic way of referring to fonts
  2266.                 without specifying actual facename.  It can be One of 
  2267.                 the ``wx.FONTFAMILY_xxx`` constants.
  2268.  
  2269.             :param style: One of the ``wx.FONTSTYLE_xxx`` constants.
  2270.  
  2271.             :param weight: Font weight, sometimes also referred to as font
  2272.                 boldness. One of the ``wx.FONTWEIGHT_xxx`` constants.
  2273.  
  2274.             :param underline: The value can be ``True`` or ``False`` and
  2275.                 indicates whether the font will include an underline.  This
  2276.                 may not be supported on all platforms.
  2277.  
  2278.             :param face: An optional string specifying the actual typeface to
  2279.                 be used. If it is an empty string, a default typeface will be
  2280.                 chosen based on the family.
  2281.  
  2282.             :param encoding: An encoding which may be one of the
  2283.                 ``wx.FONTENCODING_xxx`` constants.  If the specified encoding isn't
  2284.                 available, no font is created.
  2285.  
  2286.         :see: `wx.FFont`, `wx.FontFromPixelSize`, `wx.FFontFromPixelSize`,
  2287.             `wx.FontFromNativeInfoString`, `wx.FontFromNativeInfo`
  2288.  
  2289.         """
  2290.         if kwargs.has_key('faceName'):
  2291.             kwargs['face'] = kwargs['faceName']
  2292.             del kwargs['faceName']
  2293.         
  2294.         newobj = _gdi_.new_Font(*args, **kwargs)
  2295.         self.this = newobj.this
  2296.         self.thisown = 1
  2297.         del newobj.thisown
  2298.  
  2299.     
  2300.     def __del__(self, destroy = _gdi_.delete_Font):
  2301.         '''__del__(self)'''
  2302.         
  2303.         try:
  2304.             if self.thisown:
  2305.                 destroy(self)
  2306.         except:
  2307.             pass
  2308.  
  2309.  
  2310.     
  2311.     def Ok(*args, **kwargs):
  2312.         '''
  2313.         Ok(self) -> bool
  2314.  
  2315.         Returns ``True`` if this font was successfully created.
  2316.         '''
  2317.         return _gdi_.Font_Ok(*args, **kwargs)
  2318.  
  2319.     
  2320.     def __nonzero__(self):
  2321.         return self.Ok()
  2322.  
  2323.     
  2324.     def __eq__(*args, **kwargs):
  2325.         '''__eq__(self, Font other) -> bool'''
  2326.         return _gdi_.Font___eq__(*args, **kwargs)
  2327.  
  2328.     
  2329.     def __ne__(*args, **kwargs):
  2330.         '''__ne__(self, Font other) -> bool'''
  2331.         return _gdi_.Font___ne__(*args, **kwargs)
  2332.  
  2333.     
  2334.     def GetPointSize(*args, **kwargs):
  2335.         '''
  2336.         GetPointSize(self) -> int
  2337.  
  2338.         Gets the point size.
  2339.         '''
  2340.         return _gdi_.Font_GetPointSize(*args, **kwargs)
  2341.  
  2342.     
  2343.     def GetPixelSize(*args, **kwargs):
  2344.         '''
  2345.         GetPixelSize(self) -> Size
  2346.  
  2347.         Returns the size in pixels if the font was constructed with a pixel
  2348.         size.
  2349.         '''
  2350.         return _gdi_.Font_GetPixelSize(*args, **kwargs)
  2351.  
  2352.     
  2353.     def IsUsingSizeInPixels(*args, **kwargs):
  2354.         '''
  2355.         IsUsingSizeInPixels(self) -> bool
  2356.  
  2357.         Returns ``True`` if the font is using a pixelSize.
  2358.         '''
  2359.         return _gdi_.Font_IsUsingSizeInPixels(*args, **kwargs)
  2360.  
  2361.     
  2362.     def GetFamily(*args, **kwargs):
  2363.         '''
  2364.         GetFamily(self) -> int
  2365.  
  2366.         Gets the font family. 
  2367.         '''
  2368.         return _gdi_.Font_GetFamily(*args, **kwargs)
  2369.  
  2370.     
  2371.     def GetStyle(*args, **kwargs):
  2372.         '''
  2373.         GetStyle(self) -> int
  2374.  
  2375.         Gets the font style.
  2376.         '''
  2377.         return _gdi_.Font_GetStyle(*args, **kwargs)
  2378.  
  2379.     
  2380.     def GetWeight(*args, **kwargs):
  2381.         '''
  2382.         GetWeight(self) -> int
  2383.  
  2384.         Gets the font weight. 
  2385.         '''
  2386.         return _gdi_.Font_GetWeight(*args, **kwargs)
  2387.  
  2388.     
  2389.     def GetUnderlined(*args, **kwargs):
  2390.         '''
  2391.         GetUnderlined(self) -> bool
  2392.  
  2393.         Returns ``True`` if the font is underlined, ``False`` otherwise.
  2394.         '''
  2395.         return _gdi_.Font_GetUnderlined(*args, **kwargs)
  2396.  
  2397.     
  2398.     def GetFaceName(*args, **kwargs):
  2399.         '''
  2400.         GetFaceName(self) -> String
  2401.  
  2402.         Returns the typeface name associated with the font, or the empty
  2403.         string if there is no typeface information.
  2404.         '''
  2405.         return _gdi_.Font_GetFaceName(*args, **kwargs)
  2406.  
  2407.     
  2408.     def GetEncoding(*args, **kwargs):
  2409.         """
  2410.         GetEncoding(self) -> int
  2411.  
  2412.         Get the font's encoding.
  2413.         """
  2414.         return _gdi_.Font_GetEncoding(*args, **kwargs)
  2415.  
  2416.     
  2417.     def GetNativeFontInfo(*args, **kwargs):
  2418.         '''
  2419.         GetNativeFontInfo(self) -> NativeFontInfo
  2420.  
  2421.         Constructs a `wx.NativeFontInfo` object from this font.
  2422.         '''
  2423.         return _gdi_.Font_GetNativeFontInfo(*args, **kwargs)
  2424.  
  2425.     
  2426.     def IsFixedWidth(*args, **kwargs):
  2427.         '''
  2428.         IsFixedWidth(self) -> bool
  2429.  
  2430.         Returns true if the font is a fixed width (or monospaced) font, false
  2431.         if it is a proportional one or font is invalid.
  2432.         '''
  2433.         return _gdi_.Font_IsFixedWidth(*args, **kwargs)
  2434.  
  2435.     
  2436.     def GetNativeFontInfoDesc(*args, **kwargs):
  2437.         """
  2438.         GetNativeFontInfoDesc(self) -> String
  2439.  
  2440.         Returns the platform-dependent string completely describing this font
  2441.         or an empty string if the font isn't valid.
  2442.         """
  2443.         return _gdi_.Font_GetNativeFontInfoDesc(*args, **kwargs)
  2444.  
  2445.     
  2446.     def GetNativeFontInfoUserDesc(*args, **kwargs):
  2447.         '''
  2448.         GetNativeFontInfoUserDesc(self) -> String
  2449.  
  2450.         Returns a human readable version of `GetNativeFontInfoDesc`.
  2451.         '''
  2452.         return _gdi_.Font_GetNativeFontInfoUserDesc(*args, **kwargs)
  2453.  
  2454.     
  2455.     def SetPointSize(*args, **kwargs):
  2456.         '''
  2457.         SetPointSize(self, int pointSize)
  2458.  
  2459.         Sets the point size.
  2460.         '''
  2461.         return _gdi_.Font_SetPointSize(*args, **kwargs)
  2462.  
  2463.     
  2464.     def SetPixelSize(*args, **kwargs):
  2465.         '''
  2466.         SetPixelSize(self, Size pixelSize)
  2467.  
  2468.         Sets the size in pixels rather than points.  If there is platform API
  2469.         support for this then it is used, otherwise a font with the closest
  2470.         size is found using a binary search.
  2471.         '''
  2472.         return _gdi_.Font_SetPixelSize(*args, **kwargs)
  2473.  
  2474.     
  2475.     def SetFamily(*args, **kwargs):
  2476.         '''
  2477.         SetFamily(self, int family)
  2478.  
  2479.         Sets the font family.
  2480.         '''
  2481.         return _gdi_.Font_SetFamily(*args, **kwargs)
  2482.  
  2483.     
  2484.     def SetStyle(*args, **kwargs):
  2485.         '''
  2486.         SetStyle(self, int style)
  2487.  
  2488.         Sets the font style.
  2489.         '''
  2490.         return _gdi_.Font_SetStyle(*args, **kwargs)
  2491.  
  2492.     
  2493.     def SetWeight(*args, **kwargs):
  2494.         '''
  2495.         SetWeight(self, int weight)
  2496.  
  2497.         Sets the font weight.
  2498.         '''
  2499.         return _gdi_.Font_SetWeight(*args, **kwargs)
  2500.  
  2501.     
  2502.     def SetFaceName(*args, **kwargs):
  2503.         """
  2504.         SetFaceName(self, String faceName)
  2505.  
  2506.         Sets the facename for the font.  The facename, which should be a valid
  2507.         font installed on the end-user's system.
  2508.  
  2509.         To avoid portability problems, don't rely on a specific face, but
  2510.         specify the font family instead or as well. A suitable font will be
  2511.         found on the end-user's system. If both the family and the facename
  2512.         are specified, wxWidgets will first search for the specific face, and
  2513.         then for a font belonging to the same family.
  2514.         """
  2515.         return _gdi_.Font_SetFaceName(*args, **kwargs)
  2516.  
  2517.     
  2518.     def SetUnderlined(*args, **kwargs):
  2519.         '''
  2520.         SetUnderlined(self, bool underlined)
  2521.  
  2522.         Sets underlining.
  2523.         '''
  2524.         return _gdi_.Font_SetUnderlined(*args, **kwargs)
  2525.  
  2526.     
  2527.     def SetEncoding(*args, **kwargs):
  2528.         '''
  2529.         SetEncoding(self, int encoding)
  2530.  
  2531.         Set the font encoding.
  2532.         '''
  2533.         return _gdi_.Font_SetEncoding(*args, **kwargs)
  2534.  
  2535.     
  2536.     def SetNativeFontInfo(*args, **kwargs):
  2537.         """
  2538.         SetNativeFontInfo(self, NativeFontInfo info)
  2539.  
  2540.         Set the font's attributes from a `wx.NativeFontInfo` object.
  2541.         """
  2542.         return _gdi_.Font_SetNativeFontInfo(*args, **kwargs)
  2543.  
  2544.     
  2545.     def SetNativeFontInfoFromString(*args, **kwargs):
  2546.         """
  2547.         SetNativeFontInfoFromString(self, String info)
  2548.  
  2549.         Set the font's attributes from string representation of a
  2550.         `wx.NativeFontInfo` object.
  2551.         """
  2552.         return _gdi_.Font_SetNativeFontInfoFromString(*args, **kwargs)
  2553.  
  2554.     
  2555.     def SetNativeFontInfoUserDesc(*args, **kwargs):
  2556.         """
  2557.         SetNativeFontInfoUserDesc(self, String info)
  2558.  
  2559.         Set the font's attributes from a string formerly returned from
  2560.         `GetNativeFontInfoDesc`.
  2561.         """
  2562.         return _gdi_.Font_SetNativeFontInfoUserDesc(*args, **kwargs)
  2563.  
  2564.     
  2565.     def GetFamilyString(*args, **kwargs):
  2566.         '''
  2567.         GetFamilyString(self) -> String
  2568.  
  2569.         Returns a string representation of the font family.
  2570.         '''
  2571.         return _gdi_.Font_GetFamilyString(*args, **kwargs)
  2572.  
  2573.     
  2574.     def GetStyleString(*args, **kwargs):
  2575.         '''
  2576.         GetStyleString(self) -> String
  2577.  
  2578.         Returns a string representation of the font style.
  2579.         '''
  2580.         return _gdi_.Font_GetStyleString(*args, **kwargs)
  2581.  
  2582.     
  2583.     def GetWeightString(*args, **kwargs):
  2584.         '''
  2585.         GetWeightString(self) -> String
  2586.  
  2587.         Return a string representation of the font weight.
  2588.         '''
  2589.         return _gdi_.Font_GetWeightString(*args, **kwargs)
  2590.  
  2591.     
  2592.     def SetNoAntiAliasing(*args, **kwargs):
  2593.         '''SetNoAntiAliasing(self, bool no=True)'''
  2594.         return _gdi_.Font_SetNoAntiAliasing(*args, **kwargs)
  2595.  
  2596.     
  2597.     def GetNoAntiAliasing(*args, **kwargs):
  2598.         '''GetNoAntiAliasing(self) -> bool'''
  2599.         return _gdi_.Font_GetNoAntiAliasing(*args, **kwargs)
  2600.  
  2601.     
  2602.     def GetDefaultEncoding(*args, **kwargs):
  2603.         '''
  2604.         GetDefaultEncoding() -> int
  2605.  
  2606.         Returns the encoding used for all fonts created with an encoding of
  2607.         ``wx.FONTENCODING_DEFAULT``.
  2608.         '''
  2609.         return _gdi_.Font_GetDefaultEncoding(*args, **kwargs)
  2610.  
  2611.     GetDefaultEncoding = staticmethod(GetDefaultEncoding)
  2612.     
  2613.     def SetDefaultEncoding(*args, **kwargs):
  2614.         '''
  2615.         SetDefaultEncoding(int encoding)
  2616.  
  2617.         Sets the default font encoding.
  2618.         '''
  2619.         return _gdi_.Font_SetDefaultEncoding(*args, **kwargs)
  2620.  
  2621.     SetDefaultEncoding = staticmethod(SetDefaultEncoding)
  2622.  
  2623.  
  2624. class FontPtr(Font):
  2625.     
  2626.     def __init__(self, this):
  2627.         self.this = this
  2628.         if not hasattr(self, 'thisown'):
  2629.             self.thisown = 0
  2630.         
  2631.         self.__class__ = Font
  2632.  
  2633.  
  2634. _gdi_.Font_swigregister(FontPtr)
  2635.  
  2636. def FontFromNativeInfo(*args, **kwargs):
  2637.     '''
  2638.     FontFromNativeInfo(NativeFontInfo info) -> Font
  2639.  
  2640.     Construct a `wx.Font` from a `wx.NativeFontInfo` object.
  2641.     '''
  2642.     if kwargs.has_key('faceName'):
  2643.         kwargs['face'] = kwargs['faceName']
  2644.         del kwargs['faceName']
  2645.     
  2646.     val = _gdi_.new_FontFromNativeInfo(*args, **kwargs)
  2647.     val.thisown = 1
  2648.     return val
  2649.  
  2650.  
  2651. def FontFromNativeInfoString(*args, **kwargs):
  2652.     '''
  2653.     FontFromNativeInfoString(String info) -> Font
  2654.  
  2655.     Construct a `wx.Font` from the string representation of a
  2656.     `wx.NativeFontInfo` object.
  2657.     '''
  2658.     if kwargs.has_key('faceName'):
  2659.         kwargs['face'] = kwargs['faceName']
  2660.         del kwargs['faceName']
  2661.     
  2662.     val = _gdi_.new_FontFromNativeInfoString(*args, **kwargs)
  2663.     val.thisown = 1
  2664.     return val
  2665.  
  2666.  
  2667. def FFont(*args, **kwargs):
  2668.     '''
  2669.     FFont(int pointSize, int family, int flags=FONTFLAG_DEFAULT, 
  2670.         String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
  2671.  
  2672.     A bit of a simpler way to create a `wx.Font` using flags instead of
  2673.     individual attribute settings.  The value of flags can be a
  2674.     combination of the following:
  2675.  
  2676.         ============================  ==
  2677.         wx.FONTFLAG_DEFAULT
  2678.         wx.FONTFLAG_ITALIC
  2679.         wx.FONTFLAG_SLANT
  2680.         wx.FONTFLAG_LIGHT
  2681.         wx.FONTFLAG_BOLD
  2682.         wx.FONTFLAG_ANTIALIASED
  2683.         wx.FONTFLAG_NOT_ANTIALIASED
  2684.         wx.FONTFLAG_UNDERLINED
  2685.         wx.FONTFLAG_STRIKETHROUGH
  2686.         ============================  ==
  2687.  
  2688.     :see: `wx.Font.__init__`
  2689.     '''
  2690.     if kwargs.has_key('faceName'):
  2691.         kwargs['face'] = kwargs['faceName']
  2692.         del kwargs['faceName']
  2693.     
  2694.     val = _gdi_.new_FFont(*args, **kwargs)
  2695.     val.thisown = 1
  2696.     return val
  2697.  
  2698.  
  2699. def FontFromPixelSize(*args, **kwargs):
  2700.     '''
  2701.     FontFromPixelSize(Size pixelSize, int family, int style, int weight, 
  2702.         bool underlined=False, String face=wxEmptyString, 
  2703.         int encoding=FONTENCODING_DEFAULT) -> Font
  2704.  
  2705.     Creates a font using a size in pixels rather than points.  If there is
  2706.     platform API support for this then it is used, otherwise a font with
  2707.     the closest size is found using a binary search.
  2708.  
  2709.     :see: `wx.Font.__init__`
  2710.     '''
  2711.     if kwargs.has_key('faceName'):
  2712.         kwargs['face'] = kwargs['faceName']
  2713.         del kwargs['faceName']
  2714.     
  2715.     val = _gdi_.new_FontFromPixelSize(*args, **kwargs)
  2716.     val.thisown = 1
  2717.     return val
  2718.  
  2719.  
  2720. def FFontFromPixelSize(*args, **kwargs):
  2721.     '''
  2722.     FFontFromPixelSize(Size pixelSize, int family, int flags=FONTFLAG_DEFAULT, 
  2723.         String face=wxEmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
  2724.  
  2725.     Creates a font using a size in pixels rather than points.  If there is
  2726.     platform API support for this then it is used, otherwise a font with
  2727.     the closest size is found using a binary search.
  2728.  
  2729.     :see: `wx.Font.__init__`, `wx.FFont`
  2730.     '''
  2731.     if kwargs.has_key('faceName'):
  2732.         kwargs['face'] = kwargs['faceName']
  2733.         del kwargs['faceName']
  2734.     
  2735.     val = _gdi_.new_FFontFromPixelSize(*args, **kwargs)
  2736.     val.thisown = 1
  2737.     return val
  2738.  
  2739.  
  2740. def Font_GetDefaultEncoding(*args, **kwargs):
  2741.     '''
  2742.     Font_GetDefaultEncoding() -> int
  2743.  
  2744.     Returns the encoding used for all fonts created with an encoding of
  2745.     ``wx.FONTENCODING_DEFAULT``.
  2746.     '''
  2747.     return _gdi_.Font_GetDefaultEncoding(*args, **kwargs)
  2748.  
  2749.  
  2750. def Font_SetDefaultEncoding(*args, **kwargs):
  2751.     '''
  2752.     Font_SetDefaultEncoding(int encoding)
  2753.  
  2754.     Sets the default font encoding.
  2755.     '''
  2756.     return _gdi_.Font_SetDefaultEncoding(*args, **kwargs)
  2757.  
  2758. Font2 = wx._deprecated(FFont, 'Use `wx.FFont` instead.')
  2759.  
  2760. class FontEnumerator(object):
  2761.     '''Proxy of C++ FontEnumerator class'''
  2762.     
  2763.     def __repr__(self):
  2764.         return '<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2765.  
  2766.     
  2767.     def __init__(self, *args, **kwargs):
  2768.         '''__init__(self) -> FontEnumerator'''
  2769.         newobj = _gdi_.new_FontEnumerator(*args, **kwargs)
  2770.         self.this = newobj.this
  2771.         self.thisown = 1
  2772.         del newobj.thisown
  2773.         self._setCallbackInfo(self, FontEnumerator, 0)
  2774.  
  2775.     
  2776.     def __del__(self, destroy = _gdi_.delete_FontEnumerator):
  2777.         '''__del__(self)'''
  2778.         
  2779.         try:
  2780.             if self.thisown:
  2781.                 destroy(self)
  2782.         except:
  2783.             pass
  2784.  
  2785.  
  2786.     
  2787.     def _setCallbackInfo(*args, **kwargs):
  2788.         '''_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)'''
  2789.         return _gdi_.FontEnumerator__setCallbackInfo(*args, **kwargs)
  2790.  
  2791.     
  2792.     def EnumerateFacenames(*args, **kwargs):
  2793.         '''EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool'''
  2794.         return _gdi_.FontEnumerator_EnumerateFacenames(*args, **kwargs)
  2795.  
  2796.     
  2797.     def EnumerateEncodings(*args, **kwargs):
  2798.         '''EnumerateEncodings(self, String facename=EmptyString) -> bool'''
  2799.         return _gdi_.FontEnumerator_EnumerateEncodings(*args, **kwargs)
  2800.  
  2801.     
  2802.     def GetEncodings(*args, **kwargs):
  2803.         '''GetEncodings(self) -> PyObject'''
  2804.         return _gdi_.FontEnumerator_GetEncodings(*args, **kwargs)
  2805.  
  2806.     
  2807.     def GetFacenames(*args, **kwargs):
  2808.         '''GetFacenames(self) -> PyObject'''
  2809.         return _gdi_.FontEnumerator_GetFacenames(*args, **kwargs)
  2810.  
  2811.  
  2812.  
  2813. class FontEnumeratorPtr(FontEnumerator):
  2814.     
  2815.     def __init__(self, this):
  2816.         self.this = this
  2817.         if not hasattr(self, 'thisown'):
  2818.             self.thisown = 0
  2819.         
  2820.         self.__class__ = FontEnumerator
  2821.  
  2822.  
  2823. _gdi_.FontEnumerator_swigregister(FontEnumeratorPtr)
  2824. LANGUAGE_DEFAULT = _gdi_.LANGUAGE_DEFAULT
  2825. LANGUAGE_UNKNOWN = _gdi_.LANGUAGE_UNKNOWN
  2826. LANGUAGE_ABKHAZIAN = _gdi_.LANGUAGE_ABKHAZIAN
  2827. LANGUAGE_AFAR = _gdi_.LANGUAGE_AFAR
  2828. LANGUAGE_AFRIKAANS = _gdi_.LANGUAGE_AFRIKAANS
  2829. LANGUAGE_ALBANIAN = _gdi_.LANGUAGE_ALBANIAN
  2830. LANGUAGE_AMHARIC = _gdi_.LANGUAGE_AMHARIC
  2831. LANGUAGE_ARABIC = _gdi_.LANGUAGE_ARABIC
  2832. LANGUAGE_ARABIC_ALGERIA = _gdi_.LANGUAGE_ARABIC_ALGERIA
  2833. LANGUAGE_ARABIC_BAHRAIN = _gdi_.LANGUAGE_ARABIC_BAHRAIN
  2834. LANGUAGE_ARABIC_EGYPT = _gdi_.LANGUAGE_ARABIC_EGYPT
  2835. LANGUAGE_ARABIC_IRAQ = _gdi_.LANGUAGE_ARABIC_IRAQ
  2836. LANGUAGE_ARABIC_JORDAN = _gdi_.LANGUAGE_ARABIC_JORDAN
  2837. LANGUAGE_ARABIC_KUWAIT = _gdi_.LANGUAGE_ARABIC_KUWAIT
  2838. LANGUAGE_ARABIC_LEBANON = _gdi_.LANGUAGE_ARABIC_LEBANON
  2839. LANGUAGE_ARABIC_LIBYA = _gdi_.LANGUAGE_ARABIC_LIBYA
  2840. LANGUAGE_ARABIC_MOROCCO = _gdi_.LANGUAGE_ARABIC_MOROCCO
  2841. LANGUAGE_ARABIC_OMAN = _gdi_.LANGUAGE_ARABIC_OMAN
  2842. LANGUAGE_ARABIC_QATAR = _gdi_.LANGUAGE_ARABIC_QATAR
  2843. LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi_.LANGUAGE_ARABIC_SAUDI_ARABIA
  2844. LANGUAGE_ARABIC_SUDAN = _gdi_.LANGUAGE_ARABIC_SUDAN
  2845. LANGUAGE_ARABIC_SYRIA = _gdi_.LANGUAGE_ARABIC_SYRIA
  2846. LANGUAGE_ARABIC_TUNISIA = _gdi_.LANGUAGE_ARABIC_TUNISIA
  2847. LANGUAGE_ARABIC_UAE = _gdi_.LANGUAGE_ARABIC_UAE
  2848. LANGUAGE_ARABIC_YEMEN = _gdi_.LANGUAGE_ARABIC_YEMEN
  2849. LANGUAGE_ARMENIAN = _gdi_.LANGUAGE_ARMENIAN
  2850. LANGUAGE_ASSAMESE = _gdi_.LANGUAGE_ASSAMESE
  2851. LANGUAGE_AYMARA = _gdi_.LANGUAGE_AYMARA
  2852. LANGUAGE_AZERI = _gdi_.LANGUAGE_AZERI
  2853. LANGUAGE_AZERI_CYRILLIC = _gdi_.LANGUAGE_AZERI_CYRILLIC
  2854. LANGUAGE_AZERI_LATIN = _gdi_.LANGUAGE_AZERI_LATIN
  2855. LANGUAGE_BASHKIR = _gdi_.LANGUAGE_BASHKIR
  2856. LANGUAGE_BASQUE = _gdi_.LANGUAGE_BASQUE
  2857. LANGUAGE_BELARUSIAN = _gdi_.LANGUAGE_BELARUSIAN
  2858. LANGUAGE_BENGALI = _gdi_.LANGUAGE_BENGALI
  2859. LANGUAGE_BHUTANI = _gdi_.LANGUAGE_BHUTANI
  2860. LANGUAGE_BIHARI = _gdi_.LANGUAGE_BIHARI
  2861. LANGUAGE_BISLAMA = _gdi_.LANGUAGE_BISLAMA
  2862. LANGUAGE_BRETON = _gdi_.LANGUAGE_BRETON
  2863. LANGUAGE_BULGARIAN = _gdi_.LANGUAGE_BULGARIAN
  2864. LANGUAGE_BURMESE = _gdi_.LANGUAGE_BURMESE
  2865. LANGUAGE_CAMBODIAN = _gdi_.LANGUAGE_CAMBODIAN
  2866. LANGUAGE_CATALAN = _gdi_.LANGUAGE_CATALAN
  2867. LANGUAGE_CHINESE = _gdi_.LANGUAGE_CHINESE
  2868. LANGUAGE_CHINESE_SIMPLIFIED = _gdi_.LANGUAGE_CHINESE_SIMPLIFIED
  2869. LANGUAGE_CHINESE_TRADITIONAL = _gdi_.LANGUAGE_CHINESE_TRADITIONAL
  2870. LANGUAGE_CHINESE_HONGKONG = _gdi_.LANGUAGE_CHINESE_HONGKONG
  2871. LANGUAGE_CHINESE_MACAU = _gdi_.LANGUAGE_CHINESE_MACAU
  2872. LANGUAGE_CHINESE_SINGAPORE = _gdi_.LANGUAGE_CHINESE_SINGAPORE
  2873. LANGUAGE_CHINESE_TAIWAN = _gdi_.LANGUAGE_CHINESE_TAIWAN
  2874. LANGUAGE_CORSICAN = _gdi_.LANGUAGE_CORSICAN
  2875. LANGUAGE_CROATIAN = _gdi_.LANGUAGE_CROATIAN
  2876. LANGUAGE_CZECH = _gdi_.LANGUAGE_CZECH
  2877. LANGUAGE_DANISH = _gdi_.LANGUAGE_DANISH
  2878. LANGUAGE_DUTCH = _gdi_.LANGUAGE_DUTCH
  2879. LANGUAGE_DUTCH_BELGIAN = _gdi_.LANGUAGE_DUTCH_BELGIAN
  2880. LANGUAGE_ENGLISH = _gdi_.LANGUAGE_ENGLISH
  2881. LANGUAGE_ENGLISH_UK = _gdi_.LANGUAGE_ENGLISH_UK
  2882. LANGUAGE_ENGLISH_US = _gdi_.LANGUAGE_ENGLISH_US
  2883. LANGUAGE_ENGLISH_AUSTRALIA = _gdi_.LANGUAGE_ENGLISH_AUSTRALIA
  2884. LANGUAGE_ENGLISH_BELIZE = _gdi_.LANGUAGE_ENGLISH_BELIZE
  2885. LANGUAGE_ENGLISH_BOTSWANA = _gdi_.LANGUAGE_ENGLISH_BOTSWANA
  2886. LANGUAGE_ENGLISH_CANADA = _gdi_.LANGUAGE_ENGLISH_CANADA
  2887. LANGUAGE_ENGLISH_CARIBBEAN = _gdi_.LANGUAGE_ENGLISH_CARIBBEAN
  2888. LANGUAGE_ENGLISH_DENMARK = _gdi_.LANGUAGE_ENGLISH_DENMARK
  2889. LANGUAGE_ENGLISH_EIRE = _gdi_.LANGUAGE_ENGLISH_EIRE
  2890. LANGUAGE_ENGLISH_JAMAICA = _gdi_.LANGUAGE_ENGLISH_JAMAICA
  2891. LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi_.LANGUAGE_ENGLISH_NEW_ZEALAND
  2892. LANGUAGE_ENGLISH_PHILIPPINES = _gdi_.LANGUAGE_ENGLISH_PHILIPPINES
  2893. LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi_.LANGUAGE_ENGLISH_SOUTH_AFRICA
  2894. LANGUAGE_ENGLISH_TRINIDAD = _gdi_.LANGUAGE_ENGLISH_TRINIDAD
  2895. LANGUAGE_ENGLISH_ZIMBABWE = _gdi_.LANGUAGE_ENGLISH_ZIMBABWE
  2896. LANGUAGE_ESPERANTO = _gdi_.LANGUAGE_ESPERANTO
  2897. LANGUAGE_ESTONIAN = _gdi_.LANGUAGE_ESTONIAN
  2898. LANGUAGE_FAEROESE = _gdi_.LANGUAGE_FAEROESE
  2899. LANGUAGE_FARSI = _gdi_.LANGUAGE_FARSI
  2900. LANGUAGE_FIJI = _gdi_.LANGUAGE_FIJI
  2901. LANGUAGE_FINNISH = _gdi_.LANGUAGE_FINNISH
  2902. LANGUAGE_FRENCH = _gdi_.LANGUAGE_FRENCH
  2903. LANGUAGE_FRENCH_BELGIAN = _gdi_.LANGUAGE_FRENCH_BELGIAN
  2904. LANGUAGE_FRENCH_CANADIAN = _gdi_.LANGUAGE_FRENCH_CANADIAN
  2905. LANGUAGE_FRENCH_LUXEMBOURG = _gdi_.LANGUAGE_FRENCH_LUXEMBOURG
  2906. LANGUAGE_FRENCH_MONACO = _gdi_.LANGUAGE_FRENCH_MONACO
  2907. LANGUAGE_FRENCH_SWISS = _gdi_.LANGUAGE_FRENCH_SWISS
  2908. LANGUAGE_FRISIAN = _gdi_.LANGUAGE_FRISIAN
  2909. LANGUAGE_GALICIAN = _gdi_.LANGUAGE_GALICIAN
  2910. LANGUAGE_GEORGIAN = _gdi_.LANGUAGE_GEORGIAN
  2911. LANGUAGE_GERMAN = _gdi_.LANGUAGE_GERMAN
  2912. LANGUAGE_GERMAN_AUSTRIAN = _gdi_.LANGUAGE_GERMAN_AUSTRIAN
  2913. LANGUAGE_GERMAN_BELGIUM = _gdi_.LANGUAGE_GERMAN_BELGIUM
  2914. LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi_.LANGUAGE_GERMAN_LIECHTENSTEIN
  2915. LANGUAGE_GERMAN_LUXEMBOURG = _gdi_.LANGUAGE_GERMAN_LUXEMBOURG
  2916. LANGUAGE_GERMAN_SWISS = _gdi_.LANGUAGE_GERMAN_SWISS
  2917. LANGUAGE_GREEK = _gdi_.LANGUAGE_GREEK
  2918. LANGUAGE_GREENLANDIC = _gdi_.LANGUAGE_GREENLANDIC
  2919. LANGUAGE_GUARANI = _gdi_.LANGUAGE_GUARANI
  2920. LANGUAGE_GUJARATI = _gdi_.LANGUAGE_GUJARATI
  2921. LANGUAGE_HAUSA = _gdi_.LANGUAGE_HAUSA
  2922. LANGUAGE_HEBREW = _gdi_.LANGUAGE_HEBREW
  2923. LANGUAGE_HINDI = _gdi_.LANGUAGE_HINDI
  2924. LANGUAGE_HUNGARIAN = _gdi_.LANGUAGE_HUNGARIAN
  2925. LANGUAGE_ICELANDIC = _gdi_.LANGUAGE_ICELANDIC
  2926. LANGUAGE_INDONESIAN = _gdi_.LANGUAGE_INDONESIAN
  2927. LANGUAGE_INTERLINGUA = _gdi_.LANGUAGE_INTERLINGUA
  2928. LANGUAGE_INTERLINGUE = _gdi_.LANGUAGE_INTERLINGUE
  2929. LANGUAGE_INUKTITUT = _gdi_.LANGUAGE_INUKTITUT
  2930. LANGUAGE_INUPIAK = _gdi_.LANGUAGE_INUPIAK
  2931. LANGUAGE_IRISH = _gdi_.LANGUAGE_IRISH
  2932. LANGUAGE_ITALIAN = _gdi_.LANGUAGE_ITALIAN
  2933. LANGUAGE_ITALIAN_SWISS = _gdi_.LANGUAGE_ITALIAN_SWISS
  2934. LANGUAGE_JAPANESE = _gdi_.LANGUAGE_JAPANESE
  2935. LANGUAGE_JAVANESE = _gdi_.LANGUAGE_JAVANESE
  2936. LANGUAGE_KANNADA = _gdi_.LANGUAGE_KANNADA
  2937. LANGUAGE_KASHMIRI = _gdi_.LANGUAGE_KASHMIRI
  2938. LANGUAGE_KASHMIRI_INDIA = _gdi_.LANGUAGE_KASHMIRI_INDIA
  2939. LANGUAGE_KAZAKH = _gdi_.LANGUAGE_KAZAKH
  2940. LANGUAGE_KERNEWEK = _gdi_.LANGUAGE_KERNEWEK
  2941. LANGUAGE_KINYARWANDA = _gdi_.LANGUAGE_KINYARWANDA
  2942. LANGUAGE_KIRGHIZ = _gdi_.LANGUAGE_KIRGHIZ
  2943. LANGUAGE_KIRUNDI = _gdi_.LANGUAGE_KIRUNDI
  2944. LANGUAGE_KONKANI = _gdi_.LANGUAGE_KONKANI
  2945. LANGUAGE_KOREAN = _gdi_.LANGUAGE_KOREAN
  2946. LANGUAGE_KURDISH = _gdi_.LANGUAGE_KURDISH
  2947. LANGUAGE_LAOTHIAN = _gdi_.LANGUAGE_LAOTHIAN
  2948. LANGUAGE_LATIN = _gdi_.LANGUAGE_LATIN
  2949. LANGUAGE_LATVIAN = _gdi_.LANGUAGE_LATVIAN
  2950. LANGUAGE_LINGALA = _gdi_.LANGUAGE_LINGALA
  2951. LANGUAGE_LITHUANIAN = _gdi_.LANGUAGE_LITHUANIAN
  2952. LANGUAGE_MACEDONIAN = _gdi_.LANGUAGE_MACEDONIAN
  2953. LANGUAGE_MALAGASY = _gdi_.LANGUAGE_MALAGASY
  2954. LANGUAGE_MALAY = _gdi_.LANGUAGE_MALAY
  2955. LANGUAGE_MALAYALAM = _gdi_.LANGUAGE_MALAYALAM
  2956. LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi_.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
  2957. LANGUAGE_MALAY_MALAYSIA = _gdi_.LANGUAGE_MALAY_MALAYSIA
  2958. LANGUAGE_MALTESE = _gdi_.LANGUAGE_MALTESE
  2959. LANGUAGE_MANIPURI = _gdi_.LANGUAGE_MANIPURI
  2960. LANGUAGE_MAORI = _gdi_.LANGUAGE_MAORI
  2961. LANGUAGE_MARATHI = _gdi_.LANGUAGE_MARATHI
  2962. LANGUAGE_MOLDAVIAN = _gdi_.LANGUAGE_MOLDAVIAN
  2963. LANGUAGE_MONGOLIAN = _gdi_.LANGUAGE_MONGOLIAN
  2964. LANGUAGE_NAURU = _gdi_.LANGUAGE_NAURU
  2965. LANGUAGE_NEPALI = _gdi_.LANGUAGE_NEPALI
  2966. LANGUAGE_NEPALI_INDIA = _gdi_.LANGUAGE_NEPALI_INDIA
  2967. LANGUAGE_NORWEGIAN_BOKMAL = _gdi_.LANGUAGE_NORWEGIAN_BOKMAL
  2968. LANGUAGE_NORWEGIAN_NYNORSK = _gdi_.LANGUAGE_NORWEGIAN_NYNORSK
  2969. LANGUAGE_OCCITAN = _gdi_.LANGUAGE_OCCITAN
  2970. LANGUAGE_ORIYA = _gdi_.LANGUAGE_ORIYA
  2971. LANGUAGE_OROMO = _gdi_.LANGUAGE_OROMO
  2972. LANGUAGE_PASHTO = _gdi_.LANGUAGE_PASHTO
  2973. LANGUAGE_POLISH = _gdi_.LANGUAGE_POLISH
  2974. LANGUAGE_PORTUGUESE = _gdi_.LANGUAGE_PORTUGUESE
  2975. LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi_.LANGUAGE_PORTUGUESE_BRAZILIAN
  2976. LANGUAGE_PUNJABI = _gdi_.LANGUAGE_PUNJABI
  2977. LANGUAGE_QUECHUA = _gdi_.LANGUAGE_QUECHUA
  2978. LANGUAGE_RHAETO_ROMANCE = _gdi_.LANGUAGE_RHAETO_ROMANCE
  2979. LANGUAGE_ROMANIAN = _gdi_.LANGUAGE_ROMANIAN
  2980. LANGUAGE_RUSSIAN = _gdi_.LANGUAGE_RUSSIAN
  2981. LANGUAGE_RUSSIAN_UKRAINE = _gdi_.LANGUAGE_RUSSIAN_UKRAINE
  2982. LANGUAGE_SAMOAN = _gdi_.LANGUAGE_SAMOAN
  2983. LANGUAGE_SANGHO = _gdi_.LANGUAGE_SANGHO
  2984. LANGUAGE_SANSKRIT = _gdi_.LANGUAGE_SANSKRIT
  2985. LANGUAGE_SCOTS_GAELIC = _gdi_.LANGUAGE_SCOTS_GAELIC
  2986. LANGUAGE_SERBIAN = _gdi_.LANGUAGE_SERBIAN
  2987. LANGUAGE_SERBIAN_CYRILLIC = _gdi_.LANGUAGE_SERBIAN_CYRILLIC
  2988. LANGUAGE_SERBIAN_LATIN = _gdi_.LANGUAGE_SERBIAN_LATIN
  2989. LANGUAGE_SERBO_CROATIAN = _gdi_.LANGUAGE_SERBO_CROATIAN
  2990. LANGUAGE_SESOTHO = _gdi_.LANGUAGE_SESOTHO
  2991. LANGUAGE_SETSWANA = _gdi_.LANGUAGE_SETSWANA
  2992. LANGUAGE_SHONA = _gdi_.LANGUAGE_SHONA
  2993. LANGUAGE_SINDHI = _gdi_.LANGUAGE_SINDHI
  2994. LANGUAGE_SINHALESE = _gdi_.LANGUAGE_SINHALESE
  2995. LANGUAGE_SISWATI = _gdi_.LANGUAGE_SISWATI
  2996. LANGUAGE_SLOVAK = _gdi_.LANGUAGE_SLOVAK
  2997. LANGUAGE_SLOVENIAN = _gdi_.LANGUAGE_SLOVENIAN
  2998. LANGUAGE_SOMALI = _gdi_.LANGUAGE_SOMALI
  2999. LANGUAGE_SPANISH = _gdi_.LANGUAGE_SPANISH
  3000. LANGUAGE_SPANISH_ARGENTINA = _gdi_.LANGUAGE_SPANISH_ARGENTINA
  3001. LANGUAGE_SPANISH_BOLIVIA = _gdi_.LANGUAGE_SPANISH_BOLIVIA
  3002. LANGUAGE_SPANISH_CHILE = _gdi_.LANGUAGE_SPANISH_CHILE
  3003. LANGUAGE_SPANISH_COLOMBIA = _gdi_.LANGUAGE_SPANISH_COLOMBIA
  3004. LANGUAGE_SPANISH_COSTA_RICA = _gdi_.LANGUAGE_SPANISH_COSTA_RICA
  3005. LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi_.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
  3006. LANGUAGE_SPANISH_ECUADOR = _gdi_.LANGUAGE_SPANISH_ECUADOR
  3007. LANGUAGE_SPANISH_EL_SALVADOR = _gdi_.LANGUAGE_SPANISH_EL_SALVADOR
  3008. LANGUAGE_SPANISH_GUATEMALA = _gdi_.LANGUAGE_SPANISH_GUATEMALA
  3009. LANGUAGE_SPANISH_HONDURAS = _gdi_.LANGUAGE_SPANISH_HONDURAS
  3010. LANGUAGE_SPANISH_MEXICAN = _gdi_.LANGUAGE_SPANISH_MEXICAN
  3011. LANGUAGE_SPANISH_MODERN = _gdi_.LANGUAGE_SPANISH_MODERN
  3012. LANGUAGE_SPANISH_NICARAGUA = _gdi_.LANGUAGE_SPANISH_NICARAGUA
  3013. LANGUAGE_SPANISH_PANAMA = _gdi_.LANGUAGE_SPANISH_PANAMA
  3014. LANGUAGE_SPANISH_PARAGUAY = _gdi_.LANGUAGE_SPANISH_PARAGUAY
  3015. LANGUAGE_SPANISH_PERU = _gdi_.LANGUAGE_SPANISH_PERU
  3016. LANGUAGE_SPANISH_PUERTO_RICO = _gdi_.LANGUAGE_SPANISH_PUERTO_RICO
  3017. LANGUAGE_SPANISH_URUGUAY = _gdi_.LANGUAGE_SPANISH_URUGUAY
  3018. LANGUAGE_SPANISH_US = _gdi_.LANGUAGE_SPANISH_US
  3019. LANGUAGE_SPANISH_VENEZUELA = _gdi_.LANGUAGE_SPANISH_VENEZUELA
  3020. LANGUAGE_SUNDANESE = _gdi_.LANGUAGE_SUNDANESE
  3021. LANGUAGE_SWAHILI = _gdi_.LANGUAGE_SWAHILI
  3022. LANGUAGE_SWEDISH = _gdi_.LANGUAGE_SWEDISH
  3023. LANGUAGE_SWEDISH_FINLAND = _gdi_.LANGUAGE_SWEDISH_FINLAND
  3024. LANGUAGE_TAGALOG = _gdi_.LANGUAGE_TAGALOG
  3025. LANGUAGE_TAJIK = _gdi_.LANGUAGE_TAJIK
  3026. LANGUAGE_TAMIL = _gdi_.LANGUAGE_TAMIL
  3027. LANGUAGE_TATAR = _gdi_.LANGUAGE_TATAR
  3028. LANGUAGE_TELUGU = _gdi_.LANGUAGE_TELUGU
  3029. LANGUAGE_THAI = _gdi_.LANGUAGE_THAI
  3030. LANGUAGE_TIBETAN = _gdi_.LANGUAGE_TIBETAN
  3031. LANGUAGE_TIGRINYA = _gdi_.LANGUAGE_TIGRINYA
  3032. LANGUAGE_TONGA = _gdi_.LANGUAGE_TONGA
  3033. LANGUAGE_TSONGA = _gdi_.LANGUAGE_TSONGA
  3034. LANGUAGE_TURKISH = _gdi_.LANGUAGE_TURKISH
  3035. LANGUAGE_TURKMEN = _gdi_.LANGUAGE_TURKMEN
  3036. LANGUAGE_TWI = _gdi_.LANGUAGE_TWI
  3037. LANGUAGE_UIGHUR = _gdi_.LANGUAGE_UIGHUR
  3038. LANGUAGE_UKRAINIAN = _gdi_.LANGUAGE_UKRAINIAN
  3039. LANGUAGE_URDU = _gdi_.LANGUAGE_URDU
  3040. LANGUAGE_URDU_INDIA = _gdi_.LANGUAGE_URDU_INDIA
  3041. LANGUAGE_URDU_PAKISTAN = _gdi_.LANGUAGE_URDU_PAKISTAN
  3042. LANGUAGE_UZBEK = _gdi_.LANGUAGE_UZBEK
  3043. LANGUAGE_UZBEK_CYRILLIC = _gdi_.LANGUAGE_UZBEK_CYRILLIC
  3044. LANGUAGE_UZBEK_LATIN = _gdi_.LANGUAGE_UZBEK_LATIN
  3045. LANGUAGE_VIETNAMESE = _gdi_.LANGUAGE_VIETNAMESE
  3046. LANGUAGE_VOLAPUK = _gdi_.LANGUAGE_VOLAPUK
  3047. LANGUAGE_WELSH = _gdi_.LANGUAGE_WELSH
  3048. LANGUAGE_WOLOF = _gdi_.LANGUAGE_WOLOF
  3049. LANGUAGE_XHOSA = _gdi_.LANGUAGE_XHOSA
  3050. LANGUAGE_YIDDISH = _gdi_.LANGUAGE_YIDDISH
  3051. LANGUAGE_YORUBA = _gdi_.LANGUAGE_YORUBA
  3052. LANGUAGE_ZHUANG = _gdi_.LANGUAGE_ZHUANG
  3053. LANGUAGE_ZULU = _gdi_.LANGUAGE_ZULU
  3054. LANGUAGE_USER_DEFINED = _gdi_.LANGUAGE_USER_DEFINED
  3055.  
  3056. class LanguageInfo(object):
  3057.     '''Proxy of C++ LanguageInfo class'''
  3058.     
  3059.     def __init__(self):
  3060.         raise RuntimeError, 'No constructor defined'
  3061.  
  3062.     
  3063.     def __repr__(self):
  3064.         return '<%s.%s; proxy of C++ wxLanguageInfo instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3065.  
  3066.     Language = property(_gdi_.LanguageInfo_Language_get, _gdi_.LanguageInfo_Language_set)
  3067.     CanonicalName = property(_gdi_.LanguageInfo_CanonicalName_get, _gdi_.LanguageInfo_CanonicalName_set)
  3068.     Description = property(_gdi_.LanguageInfo_Description_get, _gdi_.LanguageInfo_Description_set)
  3069.  
  3070.  
  3071. class LanguageInfoPtr(LanguageInfo):
  3072.     
  3073.     def __init__(self, this):
  3074.         self.this = this
  3075.         if not hasattr(self, 'thisown'):
  3076.             self.thisown = 0
  3077.         
  3078.         self.__class__ = LanguageInfo
  3079.  
  3080.  
  3081. _gdi_.LanguageInfo_swigregister(LanguageInfoPtr)
  3082. LOCALE_CAT_NUMBER = _gdi_.LOCALE_CAT_NUMBER
  3083. LOCALE_CAT_DATE = _gdi_.LOCALE_CAT_DATE
  3084. LOCALE_CAT_MONEY = _gdi_.LOCALE_CAT_MONEY
  3085. LOCALE_CAT_MAX = _gdi_.LOCALE_CAT_MAX
  3086. LOCALE_THOUSANDS_SEP = _gdi_.LOCALE_THOUSANDS_SEP
  3087. LOCALE_DECIMAL_POINT = _gdi_.LOCALE_DECIMAL_POINT
  3088. LOCALE_LOAD_DEFAULT = _gdi_.LOCALE_LOAD_DEFAULT
  3089. LOCALE_CONV_ENCODING = _gdi_.LOCALE_CONV_ENCODING
  3090.  
  3091. class Locale(object):
  3092.     '''Proxy of C++ Locale class'''
  3093.     
  3094.     def __repr__(self):
  3095.         return '<%s.%s; proxy of C++ wxLocale instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3096.  
  3097.     
  3098.     def __init__(self, *args, **kwargs):
  3099.         '''__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale'''
  3100.         newobj = _gdi_.new_Locale(*args, **kwargs)
  3101.         self.this = newobj.this
  3102.         self.thisown = 1
  3103.         del newobj.thisown
  3104.  
  3105.     
  3106.     def __del__(self, destroy = _gdi_.delete_Locale):
  3107.         '''__del__(self)'''
  3108.         
  3109.         try:
  3110.             if self.thisown:
  3111.                 destroy(self)
  3112.         except:
  3113.             pass
  3114.  
  3115.  
  3116.     
  3117.     def Init1(*args, **kwargs):
  3118.         '''
  3119.         Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString, 
  3120.             bool bLoadDefault=True, 
  3121.             bool bConvertEncoding=False) -> bool
  3122.         '''
  3123.         return _gdi_.Locale_Init1(*args, **kwargs)
  3124.  
  3125.     
  3126.     def Init2(*args, **kwargs):
  3127.         '''Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool'''
  3128.         return _gdi_.Locale_Init2(*args, **kwargs)
  3129.  
  3130.     
  3131.     def Init(self, *_args, **_kwargs):
  3132.         if type(_args[0]) in [
  3133.             type(''),
  3134.             type(u'')]:
  3135.             val = self.Init1(*_args, **_kwargs)
  3136.         else:
  3137.             val = self.Init2(*_args, **_kwargs)
  3138.         return val
  3139.  
  3140.     
  3141.     def GetSystemLanguage(*args, **kwargs):
  3142.         '''GetSystemLanguage() -> int'''
  3143.         return _gdi_.Locale_GetSystemLanguage(*args, **kwargs)
  3144.  
  3145.     GetSystemLanguage = staticmethod(GetSystemLanguage)
  3146.     
  3147.     def GetSystemEncoding(*args, **kwargs):
  3148.         '''GetSystemEncoding() -> int'''
  3149.         return _gdi_.Locale_GetSystemEncoding(*args, **kwargs)
  3150.  
  3151.     GetSystemEncoding = staticmethod(GetSystemEncoding)
  3152.     
  3153.     def GetSystemEncodingName(*args, **kwargs):
  3154.         '''GetSystemEncodingName() -> String'''
  3155.         return _gdi_.Locale_GetSystemEncodingName(*args, **kwargs)
  3156.  
  3157.     GetSystemEncodingName = staticmethod(GetSystemEncodingName)
  3158.     
  3159.     def IsOk(*args, **kwargs):
  3160.         '''IsOk(self) -> bool'''
  3161.         return _gdi_.Locale_IsOk(*args, **kwargs)
  3162.  
  3163.     
  3164.     def __nonzero__(self):
  3165.         return self.IsOk()
  3166.  
  3167.     
  3168.     def GetLocale(*args, **kwargs):
  3169.         '''GetLocale(self) -> String'''
  3170.         return _gdi_.Locale_GetLocale(*args, **kwargs)
  3171.  
  3172.     
  3173.     def GetLanguage(*args, **kwargs):
  3174.         '''GetLanguage(self) -> int'''
  3175.         return _gdi_.Locale_GetLanguage(*args, **kwargs)
  3176.  
  3177.     
  3178.     def GetSysName(*args, **kwargs):
  3179.         '''GetSysName(self) -> String'''
  3180.         return _gdi_.Locale_GetSysName(*args, **kwargs)
  3181.  
  3182.     
  3183.     def GetCanonicalName(*args, **kwargs):
  3184.         '''GetCanonicalName(self) -> String'''
  3185.         return _gdi_.Locale_GetCanonicalName(*args, **kwargs)
  3186.  
  3187.     
  3188.     def AddCatalogLookupPathPrefix(*args, **kwargs):
  3189.         '''AddCatalogLookupPathPrefix(String prefix)'''
  3190.         return _gdi_.Locale_AddCatalogLookupPathPrefix(*args, **kwargs)
  3191.  
  3192.     AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix)
  3193.     
  3194.     def AddCatalog(*args, **kwargs):
  3195.         '''AddCatalog(self, String szDomain) -> bool'''
  3196.         return _gdi_.Locale_AddCatalog(*args, **kwargs)
  3197.  
  3198.     
  3199.     def IsLoaded(*args, **kwargs):
  3200.         '''IsLoaded(self, String szDomain) -> bool'''
  3201.         return _gdi_.Locale_IsLoaded(*args, **kwargs)
  3202.  
  3203.     
  3204.     def GetLanguageInfo(*args, **kwargs):
  3205.         '''GetLanguageInfo(int lang) -> LanguageInfo'''
  3206.         return _gdi_.Locale_GetLanguageInfo(*args, **kwargs)
  3207.  
  3208.     GetLanguageInfo = staticmethod(GetLanguageInfo)
  3209.     
  3210.     def GetLanguageName(*args, **kwargs):
  3211.         '''GetLanguageName(int lang) -> String'''
  3212.         return _gdi_.Locale_GetLanguageName(*args, **kwargs)
  3213.  
  3214.     GetLanguageName = staticmethod(GetLanguageName)
  3215.     
  3216.     def FindLanguageInfo(*args, **kwargs):
  3217.         '''FindLanguageInfo(String locale) -> LanguageInfo'''
  3218.         return _gdi_.Locale_FindLanguageInfo(*args, **kwargs)
  3219.  
  3220.     FindLanguageInfo = staticmethod(FindLanguageInfo)
  3221.     
  3222.     def AddLanguage(*args, **kwargs):
  3223.         '''AddLanguage(LanguageInfo info)'''
  3224.         return _gdi_.Locale_AddLanguage(*args, **kwargs)
  3225.  
  3226.     AddLanguage = staticmethod(AddLanguage)
  3227.     
  3228.     def GetString(*args, **kwargs):
  3229.         '''GetString(self, String szOrigString, String szDomain=EmptyString) -> String'''
  3230.         return _gdi_.Locale_GetString(*args, **kwargs)
  3231.  
  3232.     
  3233.     def GetName(*args, **kwargs):
  3234.         '''GetName(self) -> String'''
  3235.         return _gdi_.Locale_GetName(*args, **kwargs)
  3236.  
  3237.  
  3238.  
  3239. class LocalePtr(Locale):
  3240.     
  3241.     def __init__(self, this):
  3242.         self.this = this
  3243.         if not hasattr(self, 'thisown'):
  3244.             self.thisown = 0
  3245.         
  3246.         self.__class__ = Locale
  3247.  
  3248.  
  3249. _gdi_.Locale_swigregister(LocalePtr)
  3250.  
  3251. def Locale_GetSystemLanguage(*args, **kwargs):
  3252.     '''Locale_GetSystemLanguage() -> int'''
  3253.     return _gdi_.Locale_GetSystemLanguage(*args, **kwargs)
  3254.  
  3255.  
  3256. def Locale_GetSystemEncoding(*args, **kwargs):
  3257.     '''Locale_GetSystemEncoding() -> int'''
  3258.     return _gdi_.Locale_GetSystemEncoding(*args, **kwargs)
  3259.  
  3260.  
  3261. def Locale_GetSystemEncodingName(*args, **kwargs):
  3262.     '''Locale_GetSystemEncodingName() -> String'''
  3263.     return _gdi_.Locale_GetSystemEncodingName(*args, **kwargs)
  3264.  
  3265.  
  3266. def Locale_AddCatalogLookupPathPrefix(*args, **kwargs):
  3267.     '''Locale_AddCatalogLookupPathPrefix(String prefix)'''
  3268.     return _gdi_.Locale_AddCatalogLookupPathPrefix(*args, **kwargs)
  3269.  
  3270.  
  3271. def Locale_GetLanguageInfo(*args, **kwargs):
  3272.     '''Locale_GetLanguageInfo(int lang) -> LanguageInfo'''
  3273.     return _gdi_.Locale_GetLanguageInfo(*args, **kwargs)
  3274.  
  3275.  
  3276. def Locale_GetLanguageName(*args, **kwargs):
  3277.     '''Locale_GetLanguageName(int lang) -> String'''
  3278.     return _gdi_.Locale_GetLanguageName(*args, **kwargs)
  3279.  
  3280.  
  3281. def Locale_FindLanguageInfo(*args, **kwargs):
  3282.     '''Locale_FindLanguageInfo(String locale) -> LanguageInfo'''
  3283.     return _gdi_.Locale_FindLanguageInfo(*args, **kwargs)
  3284.  
  3285.  
  3286. def Locale_AddLanguage(*args, **kwargs):
  3287.     '''Locale_AddLanguage(LanguageInfo info)'''
  3288.     return _gdi_.Locale_AddLanguage(*args, **kwargs)
  3289.  
  3290.  
  3291. def GetLocale(*args, **kwargs):
  3292.     '''GetLocale() -> Locale'''
  3293.     return _gdi_.GetLocale(*args, **kwargs)
  3294.  
  3295. CONVERT_STRICT = _gdi_.CONVERT_STRICT
  3296. CONVERT_SUBSTITUTE = _gdi_.CONVERT_SUBSTITUTE
  3297. PLATFORM_CURRENT = _gdi_.PLATFORM_CURRENT
  3298. PLATFORM_UNIX = _gdi_.PLATFORM_UNIX
  3299. PLATFORM_WINDOWS = _gdi_.PLATFORM_WINDOWS
  3300. PLATFORM_OS2 = _gdi_.PLATFORM_OS2
  3301. PLATFORM_MAC = _gdi_.PLATFORM_MAC
  3302.  
  3303. class EncodingConverter(_core.Object):
  3304.     '''Proxy of C++ EncodingConverter class'''
  3305.     
  3306.     def __repr__(self):
  3307.         return '<%s.%s; proxy of C++ wxEncodingConverter instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3308.  
  3309.     
  3310.     def __init__(self, *args, **kwargs):
  3311.         '''__init__(self) -> EncodingConverter'''
  3312.         newobj = _gdi_.new_EncodingConverter(*args, **kwargs)
  3313.         self.this = newobj.this
  3314.         self.thisown = 1
  3315.         del newobj.thisown
  3316.  
  3317.     
  3318.     def __del__(self, destroy = _gdi_.delete_EncodingConverter):
  3319.         '''__del__(self)'''
  3320.         
  3321.         try:
  3322.             if self.thisown:
  3323.                 destroy(self)
  3324.         except:
  3325.             pass
  3326.  
  3327.  
  3328.     
  3329.     def Init(*args, **kwargs):
  3330.         '''Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool'''
  3331.         return _gdi_.EncodingConverter_Init(*args, **kwargs)
  3332.  
  3333.     
  3334.     def Convert(*args, **kwargs):
  3335.         '''Convert(self, String input) -> String'''
  3336.         return _gdi_.EncodingConverter_Convert(*args, **kwargs)
  3337.  
  3338.     
  3339.     def GetPlatformEquivalents(*args, **kwargs):
  3340.         '''GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray'''
  3341.         return _gdi_.EncodingConverter_GetPlatformEquivalents(*args, **kwargs)
  3342.  
  3343.     GetPlatformEquivalents = staticmethod(GetPlatformEquivalents)
  3344.     
  3345.     def GetAllEquivalents(*args, **kwargs):
  3346.         '''GetAllEquivalents(int enc) -> wxFontEncodingArray'''
  3347.         return _gdi_.EncodingConverter_GetAllEquivalents(*args, **kwargs)
  3348.  
  3349.     GetAllEquivalents = staticmethod(GetAllEquivalents)
  3350.     
  3351.     def CanConvert(*args, **kwargs):
  3352.         '''CanConvert(int encIn, int encOut) -> bool'''
  3353.         return _gdi_.EncodingConverter_CanConvert(*args, **kwargs)
  3354.  
  3355.     CanConvert = staticmethod(CanConvert)
  3356.     
  3357.     def __nonzero__(self):
  3358.         return self.IsOk()
  3359.  
  3360.  
  3361.  
  3362. class EncodingConverterPtr(EncodingConverter):
  3363.     
  3364.     def __init__(self, this):
  3365.         self.this = this
  3366.         if not hasattr(self, 'thisown'):
  3367.             self.thisown = 0
  3368.         
  3369.         self.__class__ = EncodingConverter
  3370.  
  3371.  
  3372. _gdi_.EncodingConverter_swigregister(EncodingConverterPtr)
  3373.  
  3374. def GetTranslation(*args):
  3375.     '''
  3376.     GetTranslation(String str) -> String
  3377.     GetTranslation(String str, String strPlural, size_t n) -> String
  3378.     '''
  3379.     return _gdi_.GetTranslation(*args)
  3380.  
  3381.  
  3382. def EncodingConverter_GetPlatformEquivalents(*args, **kwargs):
  3383.     '''EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray'''
  3384.     return _gdi_.EncodingConverter_GetPlatformEquivalents(*args, **kwargs)
  3385.  
  3386.  
  3387. def EncodingConverter_GetAllEquivalents(*args, **kwargs):
  3388.     '''EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray'''
  3389.     return _gdi_.EncodingConverter_GetAllEquivalents(*args, **kwargs)
  3390.  
  3391.  
  3392. def EncodingConverter_CanConvert(*args, **kwargs):
  3393.     '''EncodingConverter_CanConvert(int encIn, int encOut) -> bool'''
  3394.     return _gdi_.EncodingConverter_CanConvert(*args, **kwargs)
  3395.  
  3396. if wx.Platform == '__WXMSW__':
  3397.     import os
  3398.     _localedir = os.path.join(os.path.split(__file__)[0], 'locale')
  3399.     Locale.AddCatalogLookupPathPrefix(_localedir)
  3400.     del os
  3401.  
  3402.  
  3403. class DC(_core.Object):
  3404.     '''
  3405.     A wx.DC is a device context onto which graphics and text can be
  3406.     drawn. It is intended to represent a number of output devices in a
  3407.     generic way, so a window can have a device context associated with it,
  3408.     and a printer also has a device context. In this way, the same piece
  3409.     of code may write to a number of different devices, if the device
  3410.     context is used as a parameter.
  3411.  
  3412.     Derived types of wxDC have documentation for specific features only,
  3413.     so refer to this section for most device context information.
  3414.  
  3415.     The wx.DC class is abstract and can not be instantiated, you must use
  3416.     one of the derived classes instead.  Which one will depend on the
  3417.     situation in which it is used.
  3418.     '''
  3419.     
  3420.     def __init__(self):
  3421.         raise RuntimeError, 'No constructor defined'
  3422.  
  3423.     
  3424.     def __repr__(self):
  3425.         return '<%s.%s; proxy of C++ wxDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3426.  
  3427.     
  3428.     def __del__(self, destroy = _gdi_.delete_DC):
  3429.         '''__del__(self)'''
  3430.         
  3431.         try:
  3432.             if self.thisown:
  3433.                 destroy(self)
  3434.         except:
  3435.             pass
  3436.  
  3437.  
  3438.     
  3439.     def BeginDrawing(*args, **kwargs):
  3440.         '''
  3441.         BeginDrawing(self)
  3442.  
  3443.         Allows for optimization of drawing code on platforms that need it.  On
  3444.         other platforms this is just an empty function and is harmless.  To
  3445.         take advantage of this postential optimization simply enclose each
  3446.         group of calls to the drawing primitives within calls to
  3447.         `BeginDrawing` and `EndDrawing`.
  3448.         '''
  3449.         return _gdi_.DC_BeginDrawing(*args, **kwargs)
  3450.  
  3451.     
  3452.     def EndDrawing(*args, **kwargs):
  3453.         '''
  3454.         EndDrawing(self)
  3455.  
  3456.         Ends the group of drawing primitives started with `BeginDrawing`, and
  3457.         invokes whatever optimization is available for this DC type on the
  3458.         current platform.
  3459.         '''
  3460.         return _gdi_.DC_EndDrawing(*args, **kwargs)
  3461.  
  3462.     
  3463.     def FloodFill(*args, **kwargs):
  3464.         '''
  3465.         FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool
  3466.  
  3467.         Flood fills the device context starting from the given point, using
  3468.         the current brush colour, and using a style:
  3469.  
  3470.             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than
  3471.               the given colour is encountered.
  3472.  
  3473.             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given
  3474.               colour.
  3475.  
  3476.         Returns False if the operation failed.
  3477.  
  3478.         Note: The present implementation for non-Windows platforms may fail to
  3479.         find colour borders if the pixels do not match the colour
  3480.         exactly. However the function will still return true.
  3481.         '''
  3482.         return _gdi_.DC_FloodFill(*args, **kwargs)
  3483.  
  3484.     
  3485.     def FloodFillPoint(*args, **kwargs):
  3486.         '''
  3487.         FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool
  3488.  
  3489.         Flood fills the device context starting from the given point, using
  3490.         the current brush colour, and using a style:
  3491.  
  3492.             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than
  3493.               the given colour is encountered.
  3494.  
  3495.             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given
  3496.               colour.
  3497.  
  3498.         Returns False if the operation failed.
  3499.  
  3500.         Note: The present implementation for non-Windows platforms may fail to
  3501.         find colour borders if the pixels do not match the colour
  3502.         exactly. However the function will still return true.
  3503.         '''
  3504.         return _gdi_.DC_FloodFillPoint(*args, **kwargs)
  3505.  
  3506.     
  3507.     def GetPixel(*args, **kwargs):
  3508.         '''
  3509.         GetPixel(self, int x, int y) -> Colour
  3510.  
  3511.         Gets the colour at the specified location on the DC.
  3512.         '''
  3513.         return _gdi_.DC_GetPixel(*args, **kwargs)
  3514.  
  3515.     
  3516.     def GetPixelPoint(*args, **kwargs):
  3517.         '''GetPixelPoint(self, Point pt) -> Colour'''
  3518.         return _gdi_.DC_GetPixelPoint(*args, **kwargs)
  3519.  
  3520.     
  3521.     def DrawLine(*args, **kwargs):
  3522.         '''
  3523.         DrawLine(self, int x1, int y1, int x2, int y2)
  3524.  
  3525.         Draws a line from the first point to the second. The current pen is
  3526.         used for drawing the line. Note that the second point is *not* part of
  3527.         the line and is not drawn by this function (this is consistent with
  3528.         the behaviour of many other toolkits).
  3529.         '''
  3530.         return _gdi_.DC_DrawLine(*args, **kwargs)
  3531.  
  3532.     
  3533.     def DrawLinePoint(*args, **kwargs):
  3534.         '''
  3535.         DrawLinePoint(self, Point pt1, Point pt2)
  3536.  
  3537.         Draws a line from the first point to the second. The current pen is
  3538.         used for drawing the line. Note that the second point is *not* part of
  3539.         the line and is not drawn by this function (this is consistent with
  3540.         the behaviour of many other toolkits).
  3541.         '''
  3542.         return _gdi_.DC_DrawLinePoint(*args, **kwargs)
  3543.  
  3544.     
  3545.     def CrossHair(*args, **kwargs):
  3546.         '''
  3547.         CrossHair(self, int x, int y)
  3548.  
  3549.         Displays a cross hair using the current pen. This is a vertical and
  3550.         horizontal line the height and width of the window, centred on the
  3551.         given point.
  3552.         '''
  3553.         return _gdi_.DC_CrossHair(*args, **kwargs)
  3554.  
  3555.     
  3556.     def CrossHairPoint(*args, **kwargs):
  3557.         '''
  3558.         CrossHairPoint(self, Point pt)
  3559.  
  3560.         Displays a cross hair using the current pen. This is a vertical and
  3561.         horizontal line the height and width of the window, centred on the
  3562.         given point.
  3563.         '''
  3564.         return _gdi_.DC_CrossHairPoint(*args, **kwargs)
  3565.  
  3566.     
  3567.     def DrawArc(*args, **kwargs):
  3568.         '''
  3569.         DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc)
  3570.  
  3571.         Draws an arc of a circle, centred on the *center* point (xc, yc), from
  3572.         the first point to the second. The current pen is used for the outline
  3573.         and the current brush for filling the shape.
  3574.  
  3575.         The arc is drawn in an anticlockwise direction from the start point to
  3576.         the end point.
  3577.         '''
  3578.         return _gdi_.DC_DrawArc(*args, **kwargs)
  3579.  
  3580.     
  3581.     def DrawArcPoint(*args, **kwargs):
  3582.         '''
  3583.         DrawArcPoint(self, Point pt1, Point pt2, Point center)
  3584.  
  3585.         Draws an arc of a circle, centred on the *center* point (xc, yc), from
  3586.         the first point to the second. The current pen is used for the outline
  3587.         and the current brush for filling the shape.
  3588.  
  3589.         The arc is drawn in an anticlockwise direction from the start point to
  3590.         the end point.
  3591.         '''
  3592.         return _gdi_.DC_DrawArcPoint(*args, **kwargs)
  3593.  
  3594.     
  3595.     def DrawCheckMark(*args, **kwargs):
  3596.         '''
  3597.         DrawCheckMark(self, int x, int y, int width, int height)
  3598.  
  3599.         Draws a check mark inside the given rectangle.
  3600.         '''
  3601.         return _gdi_.DC_DrawCheckMark(*args, **kwargs)
  3602.  
  3603.     
  3604.     def DrawCheckMarkRect(*args, **kwargs):
  3605.         '''
  3606.         DrawCheckMarkRect(self, Rect rect)
  3607.  
  3608.         Draws a check mark inside the given rectangle.
  3609.         '''
  3610.         return _gdi_.DC_DrawCheckMarkRect(*args, **kwargs)
  3611.  
  3612.     
  3613.     def DrawEllipticArc(*args, **kwargs):
  3614.         """
  3615.         DrawEllipticArc(self, int x, int y, int w, int h, double start, double end)
  3616.  
  3617.         Draws an arc of an ellipse, with the given rectangle defining the
  3618.         bounds of the ellipse. The current pen is used for drawing the arc and
  3619.         the current brush is used for drawing the pie.
  3620.  
  3621.         The *start* and *end* parameters specify the start and end of the arc
  3622.         relative to the three-o'clock position from the center of the
  3623.         rectangle. Angles are specified in degrees (360 is a complete
  3624.         circle). Positive values mean counter-clockwise motion. If start is
  3625.         equal to end, a complete ellipse will be drawn.
  3626.         """
  3627.         return _gdi_.DC_DrawEllipticArc(*args, **kwargs)
  3628.  
  3629.     
  3630.     def DrawEllipticArcPointSize(*args, **kwargs):
  3631.         """
  3632.         DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end)
  3633.  
  3634.         Draws an arc of an ellipse, with the given rectangle defining the
  3635.         bounds of the ellipse. The current pen is used for drawing the arc and
  3636.         the current brush is used for drawing the pie.
  3637.  
  3638.         The *start* and *end* parameters specify the start and end of the arc
  3639.         relative to the three-o'clock position from the center of the
  3640.         rectangle. Angles are specified in degrees (360 is a complete
  3641.         circle). Positive values mean counter-clockwise motion. If start is
  3642.         equal to end, a complete ellipse will be drawn.
  3643.         """
  3644.         return _gdi_.DC_DrawEllipticArcPointSize(*args, **kwargs)
  3645.  
  3646.     
  3647.     def DrawPoint(*args, **kwargs):
  3648.         '''
  3649.         DrawPoint(self, int x, int y)
  3650.  
  3651.         Draws a point using the current pen.
  3652.         '''
  3653.         return _gdi_.DC_DrawPoint(*args, **kwargs)
  3654.  
  3655.     
  3656.     def DrawPointPoint(*args, **kwargs):
  3657.         '''
  3658.         DrawPointPoint(self, Point pt)
  3659.  
  3660.         Draws a point using the current pen.
  3661.         '''
  3662.         return _gdi_.DC_DrawPointPoint(*args, **kwargs)
  3663.  
  3664.     
  3665.     def DrawRectangle(*args, **kwargs):
  3666.         '''
  3667.         DrawRectangle(self, int x, int y, int width, int height)
  3668.  
  3669.         Draws a rectangle with the given top left corner, and with the given
  3670.         size. The current pen is used for the outline and the current brush
  3671.         for filling the shape.
  3672.         '''
  3673.         return _gdi_.DC_DrawRectangle(*args, **kwargs)
  3674.  
  3675.     
  3676.     def DrawRectangleRect(*args, **kwargs):
  3677.         '''
  3678.         DrawRectangleRect(self, Rect rect)
  3679.  
  3680.         Draws a rectangle with the given top left corner, and with the given
  3681.         size. The current pen is used for the outline and the current brush
  3682.         for filling the shape.
  3683.         '''
  3684.         return _gdi_.DC_DrawRectangleRect(*args, **kwargs)
  3685.  
  3686.     
  3687.     def DrawRectanglePointSize(*args, **kwargs):
  3688.         '''
  3689.         DrawRectanglePointSize(self, Point pt, Size sz)
  3690.  
  3691.         Draws a rectangle with the given top left corner, and with the given
  3692.         size. The current pen is used for the outline and the current brush
  3693.         for filling the shape.
  3694.         '''
  3695.         return _gdi_.DC_DrawRectanglePointSize(*args, **kwargs)
  3696.  
  3697.     
  3698.     def DrawRoundedRectangle(*args, **kwargs):
  3699.         '''
  3700.         DrawRoundedRectangle(self, int x, int y, int width, int height, double radius)
  3701.  
  3702.         Draws a rectangle with the given top left corner, and with the given
  3703.         size. The corners are quarter-circles using the given radius. The
  3704.         current pen is used for the outline and the current brush for filling
  3705.         the shape.
  3706.  
  3707.         If radius is positive, the value is assumed to be the radius of the
  3708.         rounded corner. If radius is negative, the absolute value is assumed
  3709.         to be the proportion of the smallest dimension of the rectangle. This
  3710.         means that the corner can be a sensible size relative to the size of
  3711.         the rectangle, and also avoids the strange effects X produces when the
  3712.         corners are too big for the rectangle.
  3713.         '''
  3714.         return _gdi_.DC_DrawRoundedRectangle(*args, **kwargs)
  3715.  
  3716.     
  3717.     def DrawRoundedRectangleRect(*args, **kwargs):
  3718.         '''
  3719.         DrawRoundedRectangleRect(self, Rect r, double radius)
  3720.  
  3721.         Draws a rectangle with the given top left corner, and with the given
  3722.         size. The corners are quarter-circles using the given radius. The
  3723.         current pen is used for the outline and the current brush for filling
  3724.         the shape.
  3725.  
  3726.         If radius is positive, the value is assumed to be the radius of the
  3727.         rounded corner. If radius is negative, the absolute value is assumed
  3728.         to be the proportion of the smallest dimension of the rectangle. This
  3729.         means that the corner can be a sensible size relative to the size of
  3730.         the rectangle, and also avoids the strange effects X produces when the
  3731.         corners are too big for the rectangle.
  3732.         '''
  3733.         return _gdi_.DC_DrawRoundedRectangleRect(*args, **kwargs)
  3734.  
  3735.     
  3736.     def DrawRoundedRectanglePointSize(*args, **kwargs):
  3737.         '''
  3738.         DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius)
  3739.  
  3740.         Draws a rectangle with the given top left corner, and with the given
  3741.         size. The corners are quarter-circles using the given radius. The
  3742.         current pen is used for the outline and the current brush for filling
  3743.         the shape.
  3744.  
  3745.         If radius is positive, the value is assumed to be the radius of the
  3746.         rounded corner. If radius is negative, the absolute value is assumed
  3747.         to be the proportion of the smallest dimension of the rectangle. This
  3748.         means that the corner can be a sensible size relative to the size of
  3749.         the rectangle, and also avoids the strange effects X produces when the
  3750.         corners are too big for the rectangle.
  3751.         '''
  3752.         return _gdi_.DC_DrawRoundedRectanglePointSize(*args, **kwargs)
  3753.  
  3754.     
  3755.     def DrawCircle(*args, **kwargs):
  3756.         '''
  3757.         DrawCircle(self, int x, int y, int radius)
  3758.  
  3759.         Draws a circle with the given center point and radius.  The current
  3760.         pen is used for the outline and the current brush for filling the
  3761.         shape.
  3762.         '''
  3763.         return _gdi_.DC_DrawCircle(*args, **kwargs)
  3764.  
  3765.     
  3766.     def DrawCirclePoint(*args, **kwargs):
  3767.         '''
  3768.         DrawCirclePoint(self, Point pt, int radius)
  3769.  
  3770.         Draws a circle with the given center point and radius.  The current
  3771.         pen is used for the outline and the current brush for filling the
  3772.         shape.
  3773.         '''
  3774.         return _gdi_.DC_DrawCirclePoint(*args, **kwargs)
  3775.  
  3776.     
  3777.     def DrawEllipse(*args, **kwargs):
  3778.         '''
  3779.         DrawEllipse(self, int x, int y, int width, int height)
  3780.  
  3781.         Draws an ellipse contained in the specified rectangle. The current pen
  3782.         is used for the outline and the current brush for filling the shape.
  3783.         '''
  3784.         return _gdi_.DC_DrawEllipse(*args, **kwargs)
  3785.  
  3786.     
  3787.     def DrawEllipseRect(*args, **kwargs):
  3788.         '''
  3789.         DrawEllipseRect(self, Rect rect)
  3790.  
  3791.         Draws an ellipse contained in the specified rectangle. The current pen
  3792.         is used for the outline and the current brush for filling the shape.
  3793.         '''
  3794.         return _gdi_.DC_DrawEllipseRect(*args, **kwargs)
  3795.  
  3796.     
  3797.     def DrawEllipsePointSize(*args, **kwargs):
  3798.         '''
  3799.         DrawEllipsePointSize(self, Point pt, Size sz)
  3800.  
  3801.         Draws an ellipse contained in the specified rectangle. The current pen
  3802.         is used for the outline and the current brush for filling the shape.
  3803.         '''
  3804.         return _gdi_.DC_DrawEllipsePointSize(*args, **kwargs)
  3805.  
  3806.     
  3807.     def DrawIcon(*args, **kwargs):
  3808.         '''
  3809.         DrawIcon(self, Icon icon, int x, int y)
  3810.  
  3811.         Draw an icon on the display (does nothing if the device context is
  3812.         PostScript). This can be the simplest way of drawing bitmaps on a
  3813.         window.
  3814.         '''
  3815.         return _gdi_.DC_DrawIcon(*args, **kwargs)
  3816.  
  3817.     
  3818.     def DrawIconPoint(*args, **kwargs):
  3819.         '''
  3820.         DrawIconPoint(self, Icon icon, Point pt)
  3821.  
  3822.         Draw an icon on the display (does nothing if the device context is
  3823.         PostScript). This can be the simplest way of drawing bitmaps on a
  3824.         window.
  3825.         '''
  3826.         return _gdi_.DC_DrawIconPoint(*args, **kwargs)
  3827.  
  3828.     
  3829.     def DrawBitmap(*args, **kwargs):
  3830.         '''
  3831.         DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False)
  3832.  
  3833.         Draw a bitmap on the device context at the specified point. If
  3834.         *transparent* is true and the bitmap has a transparency mask, (or
  3835.         alpha channel on the platforms that support it) then the bitmap will
  3836.         be drawn transparently.
  3837.         '''
  3838.         return _gdi_.DC_DrawBitmap(*args, **kwargs)
  3839.  
  3840.     
  3841.     def DrawBitmapPoint(*args, **kwargs):
  3842.         '''
  3843.         DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False)
  3844.  
  3845.         Draw a bitmap on the device context at the specified point. If
  3846.         *transparent* is true and the bitmap has a transparency mask, (or
  3847.         alpha channel on the platforms that support it) then the bitmap will
  3848.         be drawn transparently.
  3849.         '''
  3850.         return _gdi_.DC_DrawBitmapPoint(*args, **kwargs)
  3851.  
  3852.     
  3853.     def DrawText(*args, **kwargs):
  3854.         '''
  3855.         DrawText(self, String text, int x, int y)
  3856.  
  3857.         Draws a text string at the specified point, using the current text
  3858.         font, and the current text foreground and background colours.
  3859.  
  3860.         The coordinates refer to the top-left corner of the rectangle bounding
  3861.         the string. See `GetTextExtent` for how to get the dimensions of a
  3862.         text string, which can be used to position the text more precisely.
  3863.  
  3864.         **NOTE**: under wxGTK the current logical function is used by this
  3865.         function but it is ignored by wxMSW. Thus, you should avoid using
  3866.         logical functions with this function in portable programs.
  3867.         '''
  3868.         return _gdi_.DC_DrawText(*args, **kwargs)
  3869.  
  3870.     
  3871.     def DrawTextPoint(*args, **kwargs):
  3872.         '''
  3873.         DrawTextPoint(self, String text, Point pt)
  3874.  
  3875.         Draws a text string at the specified point, using the current text
  3876.         font, and the current text foreground and background colours.
  3877.  
  3878.         The coordinates refer to the top-left corner of the rectangle bounding
  3879.         the string. See `GetTextExtent` for how to get the dimensions of a
  3880.         text string, which can be used to position the text more precisely.
  3881.  
  3882.         **NOTE**: under wxGTK the current logical function is used by this
  3883.         function but it is ignored by wxMSW. Thus, you should avoid using
  3884.         logical functions with this function in portable programs.
  3885.         '''
  3886.         return _gdi_.DC_DrawTextPoint(*args, **kwargs)
  3887.  
  3888.     
  3889.     def DrawRotatedText(*args, **kwargs):
  3890.         '''
  3891.         DrawRotatedText(self, String text, int x, int y, double angle)
  3892.  
  3893.         Draws the text rotated by *angle* degrees, if supported by the platform.
  3894.  
  3895.         **NOTE**: Under Win9x only TrueType fonts can be drawn by this
  3896.         function. In particular, a font different from ``wx.NORMAL_FONT``
  3897.         should be used as the it is not normally a TrueType
  3898.         font. ``wx.SWISS_FONT`` is an example of a font which is.
  3899.         '''
  3900.         return _gdi_.DC_DrawRotatedText(*args, **kwargs)
  3901.  
  3902.     
  3903.     def DrawRotatedTextPoint(*args, **kwargs):
  3904.         '''
  3905.         DrawRotatedTextPoint(self, String text, Point pt, double angle)
  3906.  
  3907.         Draws the text rotated by *angle* degrees, if supported by the platform.
  3908.  
  3909.         **NOTE**: Under Win9x only TrueType fonts can be drawn by this
  3910.         function. In particular, a font different from ``wx.NORMAL_FONT``
  3911.         should be used as the it is not normally a TrueType
  3912.         font. ``wx.SWISS_FONT`` is an example of a font which is.
  3913.         '''
  3914.         return _gdi_.DC_DrawRotatedTextPoint(*args, **kwargs)
  3915.  
  3916.     
  3917.     def Blit(*args, **kwargs):
  3918.         '''
  3919.         Blit(self, int xdest, int ydest, int width, int height, DC source, 
  3920.             int xsrc, int ysrc, int rop=COPY, bool useMask=False, 
  3921.             int xsrcMask=-1, int ysrcMask=-1) -> bool
  3922.  
  3923.         Copy from a source DC to this DC.  Parameters specify the destination
  3924.         coordinates, size of area to copy, source DC, source coordinates,
  3925.         logical function, whether to use a bitmap mask, and mask source
  3926.         position.
  3927.         '''
  3928.         return _gdi_.DC_Blit(*args, **kwargs)
  3929.  
  3930.     
  3931.     def BlitPointSize(*args, **kwargs):
  3932.         '''
  3933.         BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY, 
  3934.             bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
  3935.  
  3936.         Copy from a source DC to this DC.  Parameters specify the destination
  3937.         coordinates, size of area to copy, source DC, source coordinates,
  3938.         logical function, whether to use a bitmap mask, and mask source
  3939.         position.
  3940.         '''
  3941.         return _gdi_.DC_BlitPointSize(*args, **kwargs)
  3942.  
  3943.     
  3944.     def SetClippingRegion(*args, **kwargs):
  3945.         '''
  3946.         SetClippingRegion(self, int x, int y, int width, int height)
  3947.  
  3948.         Sets the clipping region for this device context to the intersection
  3949.         of the given region described by the parameters of this method and the
  3950.         previously set clipping region. You should call `DestroyClippingRegion`
  3951.         if you want to set the clipping region exactly to the region
  3952.         specified.
  3953.  
  3954.         The clipping region is an area to which drawing is
  3955.         restricted. Possible uses for the clipping region are for clipping
  3956.         text or for speeding up window redraws when only a known area of the
  3957.         screen is damaged.
  3958.         '''
  3959.         return _gdi_.DC_SetClippingRegion(*args, **kwargs)
  3960.  
  3961.     
  3962.     def SetClippingRegionPointSize(*args, **kwargs):
  3963.         '''
  3964.         SetClippingRegionPointSize(self, Point pt, Size sz)
  3965.  
  3966.         Sets the clipping region for this device context to the intersection
  3967.         of the given region described by the parameters of this method and the
  3968.         previously set clipping region. You should call `DestroyClippingRegion`
  3969.         if you want to set the clipping region exactly to the region
  3970.         specified.
  3971.  
  3972.         The clipping region is an area to which drawing is
  3973.         restricted. Possible uses for the clipping region are for clipping
  3974.         text or for speeding up window redraws when only a known area of the
  3975.         screen is damaged.
  3976.         '''
  3977.         return _gdi_.DC_SetClippingRegionPointSize(*args, **kwargs)
  3978.  
  3979.     
  3980.     def SetClippingRegionAsRegion(*args, **kwargs):
  3981.         '''
  3982.         SetClippingRegionAsRegion(self, Region region)
  3983.  
  3984.         Sets the clipping region for this device context to the intersection
  3985.         of the given region described by the parameters of this method and the
  3986.         previously set clipping region. You should call `DestroyClippingRegion`
  3987.         if you want to set the clipping region exactly to the region
  3988.         specified.
  3989.  
  3990.         The clipping region is an area to which drawing is
  3991.         restricted. Possible uses for the clipping region are for clipping
  3992.         text or for speeding up window redraws when only a known area of the
  3993.         screen is damaged.
  3994.         '''
  3995.         return _gdi_.DC_SetClippingRegionAsRegion(*args, **kwargs)
  3996.  
  3997.     
  3998.     def SetClippingRect(*args, **kwargs):
  3999.         '''
  4000.         SetClippingRect(self, Rect rect)
  4001.  
  4002.         Sets the clipping region for this device context to the intersection
  4003.         of the given region described by the parameters of this method and the
  4004.         previously set clipping region. You should call `DestroyClippingRegion`
  4005.         if you want to set the clipping region exactly to the region
  4006.         specified.
  4007.  
  4008.         The clipping region is an area to which drawing is
  4009.         restricted. Possible uses for the clipping region are for clipping
  4010.         text or for speeding up window redraws when only a known area of the
  4011.         screen is damaged.
  4012.         '''
  4013.         return _gdi_.DC_SetClippingRect(*args, **kwargs)
  4014.  
  4015.     
  4016.     def DrawLines(*args, **kwargs):
  4017.         '''
  4018.         DrawLines(self, List points, int xoffset=0, int yoffset=0)
  4019.  
  4020.         Draws lines using a sequence of `wx.Point` objects, adding the
  4021.         optional offset coordinate. The current pen is used for drawing the
  4022.         lines.
  4023.         '''
  4024.         return _gdi_.DC_DrawLines(*args, **kwargs)
  4025.  
  4026.     
  4027.     def DrawPolygon(*args, **kwargs):
  4028.         '''
  4029.         DrawPolygon(self, List points, int xoffset=0, int yoffset=0,
  4030.             int fillStyle=ODDEVEN_RULE)
  4031.  
  4032.         Draws a filled polygon using a sequence of `wx.Point` objects, adding
  4033.         the optional offset coordinate.  The last argument specifies the fill
  4034.         rule: ``wx.ODDEVEN_RULE`` (the default) or ``wx.WINDING_RULE``.
  4035.  
  4036.         The current pen is used for drawing the outline, and the current brush
  4037.         for filling the shape. Using a transparent brush suppresses
  4038.         filling. Note that wxWidgets automatically closes the first and last
  4039.         points.
  4040.         '''
  4041.         return _gdi_.DC_DrawPolygon(*args, **kwargs)
  4042.  
  4043.     
  4044.     def DrawLabel(*args, **kwargs):
  4045.         '''
  4046.         DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, 
  4047.             int indexAccel=-1)
  4048.  
  4049.         Draw *text* within the specified rectangle, abiding by the alignment
  4050.         flags.  Will additionally emphasize the character at *indexAccel* if
  4051.         it is not -1.
  4052.         '''
  4053.         return _gdi_.DC_DrawLabel(*args, **kwargs)
  4054.  
  4055.     
  4056.     def DrawImageLabel(*args, **kwargs):
  4057.         '''
  4058.         DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP, 
  4059.             int indexAccel=-1) -> Rect
  4060.  
  4061.         Draw *text* and an image (which may be ``wx.NullBitmap`` to skip
  4062.         drawing it) within the specified rectangle, abiding by the alignment
  4063.         flags.  Will additionally emphasize the character at *indexAccel* if
  4064.         it is not -1.  Returns the bounding rectangle.
  4065.         '''
  4066.         return _gdi_.DC_DrawImageLabel(*args, **kwargs)
  4067.  
  4068.     
  4069.     def DrawSpline(*args, **kwargs):
  4070.         """
  4071.         DrawSpline(self, List points)
  4072.  
  4073.         Draws a spline between all given control points, (a list of `wx.Point`
  4074.         objects) using the current pen. The spline is drawn using a series of
  4075.         lines, using an algorithm taken from the X drawing program 'XFIG'.
  4076.         """
  4077.         return _gdi_.DC_DrawSpline(*args, **kwargs)
  4078.  
  4079.     
  4080.     def Clear(*args, **kwargs):
  4081.         '''
  4082.         Clear(self)
  4083.  
  4084.         Clears the device context using the current background brush.
  4085.         '''
  4086.         return _gdi_.DC_Clear(*args, **kwargs)
  4087.  
  4088.     
  4089.     def StartDoc(*args, **kwargs):
  4090.         '''
  4091.         StartDoc(self, String message) -> bool
  4092.  
  4093.         Starts a document (only relevant when outputting to a
  4094.         printer). *Message* is a message to show whilst printing.
  4095.         '''
  4096.         return _gdi_.DC_StartDoc(*args, **kwargs)
  4097.  
  4098.     
  4099.     def EndDoc(*args, **kwargs):
  4100.         '''
  4101.         EndDoc(self)
  4102.  
  4103.         Ends a document (only relevant when outputting to a printer).
  4104.         '''
  4105.         return _gdi_.DC_EndDoc(*args, **kwargs)
  4106.  
  4107.     
  4108.     def StartPage(*args, **kwargs):
  4109.         '''
  4110.         StartPage(self)
  4111.  
  4112.         Starts a document page (only relevant when outputting to a printer).
  4113.         '''
  4114.         return _gdi_.DC_StartPage(*args, **kwargs)
  4115.  
  4116.     
  4117.     def EndPage(*args, **kwargs):
  4118.         '''
  4119.         EndPage(self)
  4120.  
  4121.         Ends a document page (only relevant when outputting to a printer).
  4122.         '''
  4123.         return _gdi_.DC_EndPage(*args, **kwargs)
  4124.  
  4125.     
  4126.     def SetFont(*args, **kwargs):
  4127.         '''
  4128.         SetFont(self, Font font)
  4129.  
  4130.         Sets the current font for the DC. It must be a valid font, in
  4131.         particular you should not pass ``wx.NullFont`` to this method.
  4132.         '''
  4133.         return _gdi_.DC_SetFont(*args, **kwargs)
  4134.  
  4135.     
  4136.     def SetPen(*args, **kwargs):
  4137.         '''
  4138.         SetPen(self, Pen pen)
  4139.  
  4140.         Sets the current pen for the DC.
  4141.  
  4142.         If the argument is ``wx.NullPen``, the current pen is selected out of the
  4143.         device context, and the original pen restored.
  4144.         '''
  4145.         return _gdi_.DC_SetPen(*args, **kwargs)
  4146.  
  4147.     
  4148.     def SetBrush(*args, **kwargs):
  4149.         '''
  4150.         SetBrush(self, Brush brush)
  4151.  
  4152.         Sets the current brush for the DC.
  4153.  
  4154.         If the argument is ``wx.NullBrush``, the current brush is selected out
  4155.         of the device context, and the original brush restored, allowing the
  4156.         current brush to be destroyed safely.
  4157.         '''
  4158.         return _gdi_.DC_SetBrush(*args, **kwargs)
  4159.  
  4160.     
  4161.     def SetBackground(*args, **kwargs):
  4162.         '''
  4163.         SetBackground(self, Brush brush)
  4164.  
  4165.         Sets the current background brush for the DC.
  4166.         '''
  4167.         return _gdi_.DC_SetBackground(*args, **kwargs)
  4168.  
  4169.     
  4170.     def SetBackgroundMode(*args, **kwargs):
  4171.         '''
  4172.         SetBackgroundMode(self, int mode)
  4173.  
  4174.         *mode* may be one of ``wx.SOLID`` and ``wx.TRANSPARENT``. This setting
  4175.         determines whether text will be drawn with a background colour or
  4176.         not.
  4177.         '''
  4178.         return _gdi_.DC_SetBackgroundMode(*args, **kwargs)
  4179.  
  4180.     
  4181.     def SetPalette(*args, **kwargs):
  4182.         '''
  4183.         SetPalette(self, Palette palette)
  4184.  
  4185.         If this is a window DC or memory DC, assigns the given palette to the
  4186.         window or bitmap associated with the DC. If the argument is
  4187.         ``wx.NullPalette``, the current palette is selected out of the device
  4188.         context, and the original palette restored.
  4189.         '''
  4190.         return _gdi_.DC_SetPalette(*args, **kwargs)
  4191.  
  4192.     
  4193.     def DestroyClippingRegion(*args, **kwargs):
  4194.         '''
  4195.         DestroyClippingRegion(self)
  4196.  
  4197.         Destroys the current clipping region so that none of the DC is
  4198.         clipped.
  4199.         '''
  4200.         return _gdi_.DC_DestroyClippingRegion(*args, **kwargs)
  4201.  
  4202.     
  4203.     def GetClippingBox(*args, **kwargs):
  4204.         '''
  4205.         GetClippingBox() -> (x, y, width, height)
  4206.  
  4207.         Gets the rectangle surrounding the current clipping region.
  4208.         '''
  4209.         return _gdi_.DC_GetClippingBox(*args, **kwargs)
  4210.  
  4211.     
  4212.     def GetClippingRect(*args, **kwargs):
  4213.         '''
  4214.         GetClippingRect(self) -> Rect
  4215.  
  4216.         Gets the rectangle surrounding the current clipping region.
  4217.         '''
  4218.         return _gdi_.DC_GetClippingRect(*args, **kwargs)
  4219.  
  4220.     
  4221.     def GetCharHeight(*args, **kwargs):
  4222.         '''
  4223.         GetCharHeight(self) -> int
  4224.  
  4225.         Gets the character height of the currently set font.
  4226.         '''
  4227.         return _gdi_.DC_GetCharHeight(*args, **kwargs)
  4228.  
  4229.     
  4230.     def GetCharWidth(*args, **kwargs):
  4231.         '''
  4232.         GetCharWidth(self) -> int
  4233.  
  4234.         Gets the average character width of the currently set font.
  4235.         '''
  4236.         return _gdi_.DC_GetCharWidth(*args, **kwargs)
  4237.  
  4238.     
  4239.     def GetTextExtent(*args, **kwargs):
  4240.         '''
  4241.         GetTextExtent(wxString string) -> (width, height)
  4242.  
  4243.         Get the width and height of the text using the current font. Only
  4244.         works for single line strings.
  4245.         '''
  4246.         return _gdi_.DC_GetTextExtent(*args, **kwargs)
  4247.  
  4248.     
  4249.     def GetFullTextExtent(*args, **kwargs):
  4250.         '''
  4251.         GetFullTextExtent(wxString string, Font font=None) ->
  4252.            (width, height, descent, externalLeading)
  4253.  
  4254.         Get the width, height, decent and leading of the text using the
  4255.         current or specified font. Only works for single line strings.
  4256.         '''
  4257.         return _gdi_.DC_GetFullTextExtent(*args, **kwargs)
  4258.  
  4259.     
  4260.     def GetMultiLineTextExtent(*args, **kwargs):
  4261.         '''
  4262.         GetMultiLineTextExtent(wxString string, Font font=None) ->
  4263.            (width, height, descent, externalLeading)
  4264.  
  4265.         Get the width, height, decent and leading of the text using the
  4266.         current or specified font. Works for single as well as multi-line
  4267.         strings.
  4268.         '''
  4269.         return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs)
  4270.  
  4271.     
  4272.     def GetPartialTextExtents(*args, **kwargs):
  4273.         '''
  4274.         GetPartialTextExtents(self, text) -> [widths]
  4275.  
  4276.         Returns a list of integers such that each value is the distance in
  4277.         pixels from the begining of text to the coresponding character of
  4278.         *text*. The generic version simply builds a running total of the widths
  4279.         of each character using GetTextExtent, however if the various
  4280.         platforms have a native API function that is faster or more accurate
  4281.         than the generic implementation then it will be used instead.
  4282.         '''
  4283.         return _gdi_.DC_GetPartialTextExtents(*args, **kwargs)
  4284.  
  4285.     
  4286.     def GetSize(*args, **kwargs):
  4287.         """
  4288.         GetSize(self) -> Size
  4289.  
  4290.         This gets the horizontal and vertical resolution in device units. It
  4291.         can be used to scale graphics to fit the page. For example, if *maxX*
  4292.         and *maxY* represent the maximum horizontal and vertical 'pixel' values
  4293.         used in your application, the following code will scale the graphic to
  4294.         fit on the printer page::
  4295.  
  4296.               w, h = dc.GetSize()
  4297.               scaleX = maxX*1.0 / w
  4298.               scaleY = maxY*1.0 / h
  4299.               dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY))
  4300.  
  4301.         """
  4302.         return _gdi_.DC_GetSize(*args, **kwargs)
  4303.  
  4304.     
  4305.     def GetSizeTuple(*args, **kwargs):
  4306.         """
  4307.         GetSizeTuple() -> (width, height)
  4308.  
  4309.         This gets the horizontal and vertical resolution in device units. It
  4310.         can be used to scale graphics to fit the page. For example, if *maxX*
  4311.         and *maxY* represent the maximum horizontal and vertical 'pixel' values
  4312.         used in your application, the following code will scale the graphic to
  4313.         fit on the printer page::
  4314.  
  4315.               w, h = dc.GetSize()
  4316.               scaleX = maxX*1.0 / w
  4317.               scaleY = maxY*1.0 / h
  4318.               dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY))
  4319.  
  4320.         """
  4321.         return _gdi_.DC_GetSizeTuple(*args, **kwargs)
  4322.  
  4323.     
  4324.     def GetSizeMM(*args, **kwargs):
  4325.         '''
  4326.         GetSizeMM(self) -> Size
  4327.  
  4328.         Get the DC size in milimeters.
  4329.         '''
  4330.         return _gdi_.DC_GetSizeMM(*args, **kwargs)
  4331.  
  4332.     
  4333.     def GetSizeMMTuple(*args, **kwargs):
  4334.         '''
  4335.         GetSizeMMTuple() -> (width, height)
  4336.  
  4337.         Get the DC size in milimeters.
  4338.         '''
  4339.         return _gdi_.DC_GetSizeMMTuple(*args, **kwargs)
  4340.  
  4341.     
  4342.     def DeviceToLogicalX(*args, **kwargs):
  4343.         '''
  4344.         DeviceToLogicalX(self, int x) -> int
  4345.  
  4346.         Convert device X coordinate to logical coordinate, using the current
  4347.         mapping mode.
  4348.         '''
  4349.         return _gdi_.DC_DeviceToLogicalX(*args, **kwargs)
  4350.  
  4351.     
  4352.     def DeviceToLogicalY(*args, **kwargs):
  4353.         '''
  4354.         DeviceToLogicalY(self, int y) -> int
  4355.  
  4356.         Converts device Y coordinate to logical coordinate, using the current
  4357.         mapping mode.
  4358.         '''
  4359.         return _gdi_.DC_DeviceToLogicalY(*args, **kwargs)
  4360.  
  4361.     
  4362.     def DeviceToLogicalXRel(*args, **kwargs):
  4363.         '''
  4364.         DeviceToLogicalXRel(self, int x) -> int
  4365.  
  4366.         Convert device X coordinate to relative logical coordinate, using the
  4367.         current mapping mode but ignoring the x axis orientation. Use this
  4368.         function for converting a width, for example.
  4369.         '''
  4370.         return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs)
  4371.  
  4372.     
  4373.     def DeviceToLogicalYRel(*args, **kwargs):
  4374.         '''
  4375.         DeviceToLogicalYRel(self, int y) -> int
  4376.  
  4377.         Convert device Y coordinate to relative logical coordinate, using the
  4378.         current mapping mode but ignoring the y axis orientation. Use this
  4379.         function for converting a height, for example.
  4380.         '''
  4381.         return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs)
  4382.  
  4383.     
  4384.     def LogicalToDeviceX(*args, **kwargs):
  4385.         '''
  4386.         LogicalToDeviceX(self, int x) -> int
  4387.  
  4388.         Converts logical X coordinate to device coordinate, using the current
  4389.         mapping mode.
  4390.         '''
  4391.         return _gdi_.DC_LogicalToDeviceX(*args, **kwargs)
  4392.  
  4393.     
  4394.     def LogicalToDeviceY(*args, **kwargs):
  4395.         '''
  4396.         LogicalToDeviceY(self, int y) -> int
  4397.  
  4398.         Converts logical Y coordinate to device coordinate, using the current
  4399.         mapping mode.
  4400.         '''
  4401.         return _gdi_.DC_LogicalToDeviceY(*args, **kwargs)
  4402.  
  4403.     
  4404.     def LogicalToDeviceXRel(*args, **kwargs):
  4405.         '''
  4406.         LogicalToDeviceXRel(self, int x) -> int
  4407.  
  4408.         Converts logical X coordinate to relative device coordinate, using the
  4409.         current mapping mode but ignoring the x axis orientation. Use this for
  4410.         converting a width, for example.
  4411.         '''
  4412.         return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs)
  4413.  
  4414.     
  4415.     def LogicalToDeviceYRel(*args, **kwargs):
  4416.         '''
  4417.         LogicalToDeviceYRel(self, int y) -> int
  4418.  
  4419.         Converts logical Y coordinate to relative device coordinate, using the
  4420.         current mapping mode but ignoring the y axis orientation. Use this for
  4421.         converting a height, for example.
  4422.         '''
  4423.         return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs)
  4424.  
  4425.     
  4426.     def CanDrawBitmap(*args, **kwargs):
  4427.         '''CanDrawBitmap(self) -> bool'''
  4428.         return _gdi_.DC_CanDrawBitmap(*args, **kwargs)
  4429.  
  4430.     
  4431.     def CanGetTextExtent(*args, **kwargs):
  4432.         '''CanGetTextExtent(self) -> bool'''
  4433.         return _gdi_.DC_CanGetTextExtent(*args, **kwargs)
  4434.  
  4435.     
  4436.     def GetDepth(*args, **kwargs):
  4437.         '''
  4438.         GetDepth(self) -> int
  4439.  
  4440.         Returns the colour depth of the DC.
  4441.         '''
  4442.         return _gdi_.DC_GetDepth(*args, **kwargs)
  4443.  
  4444.     
  4445.     def GetPPI(*args, **kwargs):
  4446.         '''
  4447.         GetPPI(self) -> Size
  4448.  
  4449.         Resolution in Pixels per inch
  4450.         '''
  4451.         return _gdi_.DC_GetPPI(*args, **kwargs)
  4452.  
  4453.     
  4454.     def Ok(*args, **kwargs):
  4455.         '''
  4456.         Ok(self) -> bool
  4457.  
  4458.         Returns true if the DC is ok to use.
  4459.         '''
  4460.         return _gdi_.DC_Ok(*args, **kwargs)
  4461.  
  4462.     
  4463.     def GetBackgroundMode(*args, **kwargs):
  4464.         '''
  4465.         GetBackgroundMode(self) -> int
  4466.  
  4467.         Returns the current background mode, either ``wx.SOLID`` or
  4468.         ``wx.TRANSPARENT``.
  4469.         '''
  4470.         return _gdi_.DC_GetBackgroundMode(*args, **kwargs)
  4471.  
  4472.     
  4473.     def GetBackground(*args, **kwargs):
  4474.         '''
  4475.         GetBackground(self) -> Brush
  4476.  
  4477.         Gets the brush used for painting the background.
  4478.         '''
  4479.         return _gdi_.DC_GetBackground(*args, **kwargs)
  4480.  
  4481.     
  4482.     def GetBrush(*args, **kwargs):
  4483.         '''
  4484.         GetBrush(self) -> Brush
  4485.  
  4486.         Gets the current brush
  4487.         '''
  4488.         return _gdi_.DC_GetBrush(*args, **kwargs)
  4489.  
  4490.     
  4491.     def GetFont(*args, **kwargs):
  4492.         '''
  4493.         GetFont(self) -> Font
  4494.  
  4495.         Gets the current font
  4496.         '''
  4497.         return _gdi_.DC_GetFont(*args, **kwargs)
  4498.  
  4499.     
  4500.     def GetPen(*args, **kwargs):
  4501.         '''
  4502.         GetPen(self) -> Pen
  4503.  
  4504.         Gets the current pen
  4505.         '''
  4506.         return _gdi_.DC_GetPen(*args, **kwargs)
  4507.  
  4508.     
  4509.     def GetTextBackground(*args, **kwargs):
  4510.         '''
  4511.         GetTextBackground(self) -> Colour
  4512.  
  4513.         Gets the current text background colour
  4514.         '''
  4515.         return _gdi_.DC_GetTextBackground(*args, **kwargs)
  4516.  
  4517.     
  4518.     def GetTextForeground(*args, **kwargs):
  4519.         '''
  4520.         GetTextForeground(self) -> Colour
  4521.  
  4522.         Gets the current text foreground colour
  4523.         '''
  4524.         return _gdi_.DC_GetTextForeground(*args, **kwargs)
  4525.  
  4526.     
  4527.     def SetTextForeground(*args, **kwargs):
  4528.         '''
  4529.         SetTextForeground(self, Colour colour)
  4530.  
  4531.         Sets the current text foreground colour for the DC.
  4532.         '''
  4533.         return _gdi_.DC_SetTextForeground(*args, **kwargs)
  4534.  
  4535.     
  4536.     def SetTextBackground(*args, **kwargs):
  4537.         '''
  4538.         SetTextBackground(self, Colour colour)
  4539.  
  4540.         Sets the current text background colour for the DC.
  4541.         '''
  4542.         return _gdi_.DC_SetTextBackground(*args, **kwargs)
  4543.  
  4544.     
  4545.     def GetMapMode(*args, **kwargs):
  4546.         '''
  4547.         GetMapMode(self) -> int
  4548.  
  4549.         Gets the current *mapping mode* for the device context 
  4550.         '''
  4551.         return _gdi_.DC_GetMapMode(*args, **kwargs)
  4552.  
  4553.     
  4554.     def SetMapMode(*args, **kwargs):
  4555.         '''
  4556.         SetMapMode(self, int mode)
  4557.  
  4558.         The *mapping mode* of the device context defines the unit of
  4559.         measurement used to convert logical units to device units.  The
  4560.         mapping mode can be one of the following:
  4561.  
  4562.             ================    =============================================
  4563.             wx.MM_TWIPS         Each logical unit is 1/20 of a point, or 1/1440
  4564.                                 of an inch.
  4565.             wx.MM_POINTS        Each logical unit is a point, or 1/72 of an inch.
  4566.             wx.MM_METRIC        Each logical unit is 1 mm.
  4567.             wx.MM_LOMETRIC      Each logical unit is 1/10 of a mm.
  4568.             wx.MM_TEXT          Each logical unit is 1 pixel.
  4569.             ================    =============================================
  4570.  
  4571.         '''
  4572.         return _gdi_.DC_SetMapMode(*args, **kwargs)
  4573.  
  4574.     
  4575.     def GetUserScale(*args, **kwargs):
  4576.         '''
  4577.         GetUserScale(self) -> (xScale, yScale)
  4578.  
  4579.         Gets the current user scale factor (set by `SetUserScale`).
  4580.         '''
  4581.         return _gdi_.DC_GetUserScale(*args, **kwargs)
  4582.  
  4583.     
  4584.     def SetUserScale(*args, **kwargs):
  4585.         """
  4586.         SetUserScale(self, double x, double y)
  4587.  
  4588.         Sets the user scaling factor, useful for applications which require
  4589.         'zooming'.
  4590.         """
  4591.         return _gdi_.DC_SetUserScale(*args, **kwargs)
  4592.  
  4593.     
  4594.     def GetLogicalScale(*args, **kwargs):
  4595.         '''GetLogicalScale() -> (xScale, yScale)'''
  4596.         return _gdi_.DC_GetLogicalScale(*args, **kwargs)
  4597.  
  4598.     
  4599.     def SetLogicalScale(*args, **kwargs):
  4600.         '''SetLogicalScale(self, double x, double y)'''
  4601.         return _gdi_.DC_SetLogicalScale(*args, **kwargs)
  4602.  
  4603.     
  4604.     def GetLogicalOrigin(*args, **kwargs):
  4605.         '''GetLogicalOrigin(self) -> Point'''
  4606.         return _gdi_.DC_GetLogicalOrigin(*args, **kwargs)
  4607.  
  4608.     
  4609.     def GetLogicalOriginTuple(*args, **kwargs):
  4610.         '''GetLogicalOriginTuple() -> (x,y)'''
  4611.         return _gdi_.DC_GetLogicalOriginTuple(*args, **kwargs)
  4612.  
  4613.     
  4614.     def SetLogicalOrigin(*args, **kwargs):
  4615.         '''SetLogicalOrigin(self, int x, int y)'''
  4616.         return _gdi_.DC_SetLogicalOrigin(*args, **kwargs)
  4617.  
  4618.     
  4619.     def SetLogicalOriginPoint(*args, **kwargs):
  4620.         '''SetLogicalOriginPoint(self, Point point)'''
  4621.         return _gdi_.DC_SetLogicalOriginPoint(*args, **kwargs)
  4622.  
  4623.     
  4624.     def GetDeviceOrigin(*args, **kwargs):
  4625.         '''GetDeviceOrigin(self) -> Point'''
  4626.         return _gdi_.DC_GetDeviceOrigin(*args, **kwargs)
  4627.  
  4628.     
  4629.     def GetDeviceOriginTuple(*args, **kwargs):
  4630.         '''GetDeviceOriginTuple() -> (x,y)'''
  4631.         return _gdi_.DC_GetDeviceOriginTuple(*args, **kwargs)
  4632.  
  4633.     
  4634.     def SetDeviceOrigin(*args, **kwargs):
  4635.         '''SetDeviceOrigin(self, int x, int y)'''
  4636.         return _gdi_.DC_SetDeviceOrigin(*args, **kwargs)
  4637.  
  4638.     
  4639.     def SetDeviceOriginPoint(*args, **kwargs):
  4640.         '''SetDeviceOriginPoint(self, Point point)'''
  4641.         return _gdi_.DC_SetDeviceOriginPoint(*args, **kwargs)
  4642.  
  4643.     
  4644.     def SetAxisOrientation(*args, **kwargs):
  4645.         '''
  4646.         SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)
  4647.  
  4648.         Sets the x and y axis orientation (i.e., the direction from lowest to
  4649.         highest values on the axis). The default orientation is the natural
  4650.         orientation, e.g. x axis from left to right and y axis from bottom up.
  4651.         '''
  4652.         return _gdi_.DC_SetAxisOrientation(*args, **kwargs)
  4653.  
  4654.     
  4655.     def GetLogicalFunction(*args, **kwargs):
  4656.         '''
  4657.         GetLogicalFunction(self) -> int
  4658.  
  4659.         Gets the current logical function (set by `SetLogicalFunction`).
  4660.         '''
  4661.         return _gdi_.DC_GetLogicalFunction(*args, **kwargs)
  4662.  
  4663.     
  4664.     def SetLogicalFunction(*args, **kwargs):
  4665.         '''
  4666.         SetLogicalFunction(self, int function)
  4667.  
  4668.         Sets the current logical function for the device context. This
  4669.         determines how a source pixel (from a pen or brush colour, or source
  4670.         device context if using `Blit`) combines with a destination pixel in
  4671.         the current device context.
  4672.  
  4673.         The possible values and their meaning in terms of source and
  4674.         destination pixel values are as follows:
  4675.  
  4676.             ================       ==========================
  4677.             wx.AND                 src AND dst
  4678.             wx.AND_INVERT          (NOT src) AND dst
  4679.             wx.AND_REVERSE         src AND (NOT dst)
  4680.             wx.CLEAR               0
  4681.             wx.COPY                src
  4682.             wx.EQUIV               (NOT src) XOR dst
  4683.             wx.INVERT              NOT dst
  4684.             wx.NAND                (NOT src) OR (NOT dst)
  4685.             wx.NOR                 (NOT src) AND (NOT dst)
  4686.             wx.NO_OP               dst
  4687.             wx.OR                  src OR dst
  4688.             wx.OR_INVERT           (NOT src) OR dst
  4689.             wx.OR_REVERSE          src OR (NOT dst)
  4690.             wx.SET                 1
  4691.             wx.SRC_INVERT          NOT src
  4692.             wx.XOR                 src XOR dst
  4693.             ================       ==========================
  4694.  
  4695.         The default is wx.COPY, which simply draws with the current
  4696.         colour. The others combine the current colour and the background using
  4697.         a logical operation. wx.INVERT is commonly used for drawing rubber
  4698.         bands or moving outlines, since drawing twice reverts to the original
  4699.         colour.
  4700.  
  4701.         '''
  4702.         return _gdi_.DC_SetLogicalFunction(*args, **kwargs)
  4703.  
  4704.     
  4705.     def ComputeScaleAndOrigin(*args, **kwargs):
  4706.         '''
  4707.         ComputeScaleAndOrigin(self)
  4708.  
  4709.         Performs all necessary computations for given platform and context
  4710.         type after each change of scale and origin parameters. Usually called
  4711.         automatically internally after such changes.
  4712.  
  4713.         '''
  4714.         return _gdi_.DC_ComputeScaleAndOrigin(*args, **kwargs)
  4715.  
  4716.     
  4717.     def SetOptimization(self, optimize):
  4718.         pass
  4719.  
  4720.     
  4721.     def GetOptimization(self):
  4722.         return False
  4723.  
  4724.     SetOptimization = wx._deprecated(SetOptimization)
  4725.     GetOptimization = wx._deprecated(GetOptimization)
  4726.     
  4727.     def CalcBoundingBox(*args, **kwargs):
  4728.         '''
  4729.         CalcBoundingBox(self, int x, int y)
  4730.  
  4731.         Adds the specified point to the bounding box which can be retrieved
  4732.         with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions.
  4733.         '''
  4734.         return _gdi_.DC_CalcBoundingBox(*args, **kwargs)
  4735.  
  4736.     
  4737.     def CalcBoundingBoxPoint(*args, **kwargs):
  4738.         '''
  4739.         CalcBoundingBoxPoint(self, Point point)
  4740.  
  4741.         Adds the specified point to the bounding box which can be retrieved
  4742.         with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions.
  4743.         '''
  4744.         return _gdi_.DC_CalcBoundingBoxPoint(*args, **kwargs)
  4745.  
  4746.     
  4747.     def ResetBoundingBox(*args, **kwargs):
  4748.         """
  4749.         ResetBoundingBox(self)
  4750.  
  4751.         Resets the bounding box: after a call to this function, the bounding
  4752.         box doesn't contain anything.
  4753.         """
  4754.         return _gdi_.DC_ResetBoundingBox(*args, **kwargs)
  4755.  
  4756.     
  4757.     def MinX(*args, **kwargs):
  4758.         '''
  4759.         MinX(self) -> int
  4760.  
  4761.         Gets the minimum horizontal extent used in drawing commands so far.
  4762.         '''
  4763.         return _gdi_.DC_MinX(*args, **kwargs)
  4764.  
  4765.     
  4766.     def MaxX(*args, **kwargs):
  4767.         '''
  4768.         MaxX(self) -> int
  4769.  
  4770.         Gets the maximum horizontal extent used in drawing commands so far.
  4771.         '''
  4772.         return _gdi_.DC_MaxX(*args, **kwargs)
  4773.  
  4774.     
  4775.     def MinY(*args, **kwargs):
  4776.         '''
  4777.         MinY(self) -> int
  4778.  
  4779.         Gets the minimum vertical extent used in drawing commands so far.
  4780.         '''
  4781.         return _gdi_.DC_MinY(*args, **kwargs)
  4782.  
  4783.     
  4784.     def MaxY(*args, **kwargs):
  4785.         '''
  4786.         MaxY(self) -> int
  4787.  
  4788.         Gets the maximum vertical extent used in drawing commands so far.
  4789.         '''
  4790.         return _gdi_.DC_MaxY(*args, **kwargs)
  4791.  
  4792.     
  4793.     def GetBoundingBox(*args, **kwargs):
  4794.         '''
  4795.         GetBoundingBox() -> (x1,y1, x2,y2)
  4796.  
  4797.         Returns the min and max points used in drawing commands so far.
  4798.         '''
  4799.         return _gdi_.DC_GetBoundingBox(*args, **kwargs)
  4800.  
  4801.     
  4802.     def __nonzero__(self):
  4803.         return self.Ok()
  4804.  
  4805.     
  4806.     def GetHDC(*args, **kwargs):
  4807.         '''GetHDC(self) -> long'''
  4808.         return _gdi_.DC_GetHDC(*args, **kwargs)
  4809.  
  4810.     
  4811.     def _DrawPointList(*args, **kwargs):
  4812.         '''_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject'''
  4813.         return _gdi_.DC__DrawPointList(*args, **kwargs)
  4814.  
  4815.     
  4816.     def _DrawLineList(*args, **kwargs):
  4817.         '''_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject'''
  4818.         return _gdi_.DC__DrawLineList(*args, **kwargs)
  4819.  
  4820.     
  4821.     def _DrawRectangleList(*args, **kwargs):
  4822.         '''_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject'''
  4823.         return _gdi_.DC__DrawRectangleList(*args, **kwargs)
  4824.  
  4825.     
  4826.     def _DrawEllipseList(*args, **kwargs):
  4827.         '''_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject'''
  4828.         return _gdi_.DC__DrawEllipseList(*args, **kwargs)
  4829.  
  4830.     
  4831.     def _DrawPolygonList(*args, **kwargs):
  4832.         '''_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject'''
  4833.         return _gdi_.DC__DrawPolygonList(*args, **kwargs)
  4834.  
  4835.     
  4836.     def _DrawTextList(*args, **kwargs):
  4837.         '''
  4838.         _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList, 
  4839.             PyObject backgroundList) -> PyObject
  4840.         '''
  4841.         return _gdi_.DC__DrawTextList(*args, **kwargs)
  4842.  
  4843.     
  4844.     def DrawPointList(self, points, pens = None):
  4845.         '''
  4846.         Draw a list of points as quickly as possible.
  4847.  
  4848.             :param points:  A sequence of 2-element sequences representing
  4849.                             each point to draw, (x,y).
  4850.             :param pens:    If None, then the current pen is used.  If a
  4851.                             single pen then it will be used for all points.  If
  4852.                             a list of pens then there should be one for each point
  4853.                             in points.
  4854.         '''
  4855.         if pens is None:
  4856.             pens = []
  4857.         elif isinstance(pens, wx.Pen):
  4858.             pens = [
  4859.                 pens]
  4860.         elif len(pens) != len(points):
  4861.             raise ValueError('points and pens must have same length')
  4862.         
  4863.         return self._DrawPointList(points, pens, [])
  4864.  
  4865.     
  4866.     def DrawLineList(self, lines, pens = None):
  4867.         '''
  4868.         Draw a list of lines as quickly as possible.
  4869.  
  4870.             :param lines:  A sequence of 4-element sequences representing
  4871.                             each line to draw, (x1,y1, x2,y2).
  4872.             :param pens:    If None, then the current pen is used.  If a
  4873.                             single pen then it will be used for all lines.  If
  4874.                             a list of pens then there should be one for each line
  4875.                             in lines.
  4876.         '''
  4877.         if pens is None:
  4878.             pens = []
  4879.         elif isinstance(pens, wx.Pen):
  4880.             pens = [
  4881.                 pens]
  4882.         elif len(pens) != len(lines):
  4883.             raise ValueError('lines and pens must have same length')
  4884.         
  4885.         return self._DrawLineList(lines, pens, [])
  4886.  
  4887.     
  4888.     def DrawRectangleList(self, rectangles, pens = None, brushes = None):
  4889.         '''
  4890.         Draw a list of rectangles as quickly as possible.
  4891.  
  4892.             :param rectangles:  A sequence of 4-element sequences representing
  4893.                             each rectangle to draw, (x,y, w,h).
  4894.             :param pens:    If None, then the current pen is used.  If a
  4895.                             single pen then it will be used for all rectangles.
  4896.                             If a list of pens then there should be one for each 
  4897.                             rectangle in rectangles.
  4898.             :param brushes: A brush or brushes to be used to fill the rectagles,
  4899.                             with similar semantics as the pens parameter.
  4900.         '''
  4901.         if pens is None:
  4902.             pens = []
  4903.         elif isinstance(pens, wx.Pen):
  4904.             pens = [
  4905.                 pens]
  4906.         elif len(pens) != len(rectangles):
  4907.             raise ValueError('rectangles and pens must have same length')
  4908.         
  4909.         if brushes is None:
  4910.             brushes = []
  4911.         elif isinstance(brushes, wx.Brush):
  4912.             brushes = [
  4913.                 brushes]
  4914.         elif len(brushes) != len(rectangles):
  4915.             raise ValueError('rectangles and brushes must have same length')
  4916.         
  4917.         return self._DrawRectangleList(rectangles, pens, brushes)
  4918.  
  4919.     
  4920.     def DrawEllipseList(self, ellipses, pens = None, brushes = None):
  4921.         '''
  4922.         Draw a list of ellipses as quickly as possible.
  4923.  
  4924.             :param ellipses: A sequence of 4-element sequences representing
  4925.                             each ellipse to draw, (x,y, w,h).
  4926.             :param pens:    If None, then the current pen is used.  If a
  4927.                             single pen then it will be used for all ellipses.
  4928.                             If a list of pens then there should be one for each 
  4929.                             ellipse in ellipses.
  4930.             :param brushes: A brush or brushes to be used to fill the ellipses,
  4931.                             with similar semantics as the pens parameter.
  4932.         '''
  4933.         if pens is None:
  4934.             pens = []
  4935.         elif isinstance(pens, wx.Pen):
  4936.             pens = [
  4937.                 pens]
  4938.         elif len(pens) != len(ellipses):
  4939.             raise ValueError('ellipses and pens must have same length')
  4940.         
  4941.         if brushes is None:
  4942.             brushes = []
  4943.         elif isinstance(brushes, wx.Brush):
  4944.             brushes = [
  4945.                 brushes]
  4946.         elif len(brushes) != len(ellipses):
  4947.             raise ValueError('ellipses and brushes must have same length')
  4948.         
  4949.         return self._DrawEllipseList(ellipses, pens, brushes)
  4950.  
  4951.     
  4952.     def DrawPolygonList(self, polygons, pens = None, brushes = None):
  4953.         '''
  4954.         Draw a list of polygons, each of which is a list of points.
  4955.  
  4956.             :param polygons: A sequence of sequences of sequences.
  4957.                              [[(x1,y1),(x2,y2),(x3,y3)...],
  4958.                              [(x1,y1),(x2,y2),(x3,y3)...]]
  4959.                               
  4960.             :param pens:    If None, then the current pen is used.  If a
  4961.                             single pen then it will be used for all polygons.
  4962.                             If a list of pens then there should be one for each 
  4963.                             polygon.
  4964.             :param brushes: A brush or brushes to be used to fill the polygons,
  4965.                             with similar semantics as the pens parameter.
  4966.         '''
  4967.         if pens is None:
  4968.             pens = []
  4969.         elif isinstance(pens, wx.Pen):
  4970.             pens = [
  4971.                 pens]
  4972.         elif len(pens) != len(polygons):
  4973.             raise ValueError('polygons and pens must have same length')
  4974.         
  4975.         if brushes is None:
  4976.             brushes = []
  4977.         elif isinstance(brushes, wx.Brush):
  4978.             brushes = [
  4979.                 brushes]
  4980.         elif len(brushes) != len(polygons):
  4981.             raise ValueError('polygons and brushes must have same length')
  4982.         
  4983.         return self._DrawPolygonList(polygons, pens, brushes)
  4984.  
  4985.     
  4986.     def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None):
  4987.         '''
  4988.         Draw a list of strings using a list of coordinants for positioning each string.
  4989.  
  4990.             :param textList:    A list of strings
  4991.             :param coords:      A list of (x,y) positions
  4992.             :param foregrounds: A list of `wx.Colour` objects to use for the
  4993.                                 foregrounds of the strings.
  4994.             :param backgrounds: A list of `wx.Colour` objects to use for the
  4995.                                 backgrounds of the strings.
  4996.  
  4997.         NOTE: Make sure you set Background mode to wx.Solid (DC.SetBackgroundMode)
  4998.               If you want backgrounds to do anything.
  4999.         '''
  5000.         if type(textList) == type(''):
  5001.             textList = [
  5002.                 textList]
  5003.         elif len(textList) != len(coords):
  5004.             raise ValueError('textlist and coords must have same length')
  5005.         
  5006.         if foregrounds is None:
  5007.             foregrounds = []
  5008.         elif isinstance(foregrounds, wx.Colour):
  5009.             foregrounds = [
  5010.                 foregrounds]
  5011.         elif len(foregrounds) != len(coords):
  5012.             raise ValueError('foregrounds and coords must have same length')
  5013.         
  5014.         if backgrounds is None:
  5015.             backgrounds = []
  5016.         elif isinstance(backgrounds, wx.Colour):
  5017.             backgrounds = [
  5018.                 backgrounds]
  5019.         elif len(backgrounds) != len(coords):
  5020.             raise ValueError('backgrounds and coords must have same length')
  5021.         
  5022.         return self._DrawTextList(textList, coords, foregrounds, backgrounds)
  5023.  
  5024.  
  5025.  
  5026. class DCPtr(DC):
  5027.     
  5028.     def __init__(self, this):
  5029.         self.this = this
  5030.         if not hasattr(self, 'thisown'):
  5031.             self.thisown = 0
  5032.         
  5033.         self.__class__ = DC
  5034.  
  5035.  
  5036. _gdi_.DC_swigregister(DCPtr)
  5037.  
  5038. class MemoryDC(DC):
  5039.     '''
  5040.     A memory device context provides a means to draw graphics onto a
  5041.     bitmap. A bitmap must be selected into the new memory DC before it may
  5042.     be used for anything. Typical usage is as follows::
  5043.  
  5044.         dc = wx.MemoryDC()
  5045.         dc.SelectObject(bitmap)
  5046.         # draw on the dc usign any of the Draw methods
  5047.         dc.SelectObject(wx.NullBitmap)
  5048.         # the bitmap now contains wahtever was drawn upon it
  5049.  
  5050.     Note that the memory DC *must* be deleted (or the bitmap selected out
  5051.     of it) before a bitmap can be reselected into another memory DC.
  5052.  
  5053.     '''
  5054.     
  5055.     def __repr__(self):
  5056.         return '<%s.%s; proxy of C++ wxMemoryDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5057.  
  5058.     
  5059.     def __init__(self, *args, **kwargs):
  5060.         """
  5061.         __init__(self) -> MemoryDC
  5062.  
  5063.         Constructs a new memory device context.
  5064.  
  5065.         Use the Ok member to test whether the constructor was successful in
  5066.         creating a usable device context. Don't forget to select a bitmap into
  5067.         the DC before drawing on it.
  5068.         """
  5069.         newobj = _gdi_.new_MemoryDC(*args, **kwargs)
  5070.         self.this = newobj.this
  5071.         self.thisown = 1
  5072.         del newobj.thisown
  5073.  
  5074.     
  5075.     def SelectObject(*args, **kwargs):
  5076.         '''
  5077.         SelectObject(self, Bitmap bitmap)
  5078.  
  5079.         Selects the bitmap into the device context, to use as the memory
  5080.         bitmap. Selecting the bitmap into a memory DC allows you to draw into
  5081.         the DC, and therefore the bitmap, and also to use Blit to copy the
  5082.         bitmap to a window.
  5083.  
  5084.         If the argument is wx.NullBitmap (or some other uninitialised
  5085.         `wx.Bitmap`) the current bitmap is selected out of the device context,
  5086.         and the original bitmap restored, allowing the current bitmap to be
  5087.         destroyed safely.
  5088.         '''
  5089.         return _gdi_.MemoryDC_SelectObject(*args, **kwargs)
  5090.  
  5091.  
  5092.  
  5093. class MemoryDCPtr(MemoryDC):
  5094.     
  5095.     def __init__(self, this):
  5096.         self.this = this
  5097.         if not hasattr(self, 'thisown'):
  5098.             self.thisown = 0
  5099.         
  5100.         self.__class__ = MemoryDC
  5101.  
  5102.  
  5103. _gdi_.MemoryDC_swigregister(MemoryDCPtr)
  5104.  
  5105. def MemoryDCFromDC(*args, **kwargs):
  5106.     '''
  5107.     MemoryDCFromDC(DC oldDC) -> MemoryDC
  5108.  
  5109.     Creates a DC that is compatible with the oldDC.
  5110.     '''
  5111.     val = _gdi_.new_MemoryDCFromDC(*args, **kwargs)
  5112.     val.thisown = 1
  5113.     return val
  5114.  
  5115. BUFFER_VIRTUAL_AREA = _gdi_.BUFFER_VIRTUAL_AREA
  5116. BUFFER_CLIENT_AREA = _gdi_.BUFFER_CLIENT_AREA
  5117.  
  5118. class BufferedDC(MemoryDC):
  5119.     '''
  5120.     This simple class provides a simple way to avoid flicker: when drawing
  5121.     on it, everything is in fact first drawn on an in-memory buffer (a
  5122.     `wx.Bitmap`) and then copied to the screen only once, when this object
  5123.     is destroyed.
  5124.  
  5125.     It can be used in the same way as any other device
  5126.     context. wx.BufferedDC itself typically replaces `wx.ClientDC`, if you
  5127.     want to use it in your EVT_PAINT handler, you should look at
  5128.     `wx.BufferedPaintDC`.
  5129.  
  5130.     '''
  5131.     
  5132.     def __repr__(self):
  5133.         return '<%s.%s; proxy of C++ wxBufferedDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5134.  
  5135.     
  5136.     def __init__(self, *args):
  5137.         '''
  5138.         __init__(self, DC dc, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedDC
  5139.         __init__(self, DC dc, Bitmap buffer=NullBitmap) -> BufferedDC
  5140.         __init__(self, DC dc) -> BufferedDC
  5141.         __init__(self, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC
  5142.         __init__(self, DC dc, Size area) -> BufferedDC
  5143.  
  5144.         Constructs a buffered DC.
  5145.         '''
  5146.         newobj = _gdi_.new_BufferedDC(*args)
  5147.         self.this = newobj.this
  5148.         self.thisown = 1
  5149.         del newobj.thisown
  5150.         self._BufferedDC__dc = args[0]
  5151.  
  5152.     
  5153.     def __del__(self, destroy = _gdi_.delete_BufferedDC):
  5154.         '''
  5155.         __del__(self)
  5156.  
  5157.         Copies everything drawn on the DC so far to the underlying DC
  5158.         associated with this object, if any.
  5159.         '''
  5160.         
  5161.         try:
  5162.             if self.thisown:
  5163.                 destroy(self)
  5164.         except:
  5165.             pass
  5166.  
  5167.  
  5168.     
  5169.     def UnMask(*args, **kwargs):
  5170.         '''
  5171.         UnMask(self)
  5172.  
  5173.         Blits the buffer to the dc, and detaches the dc from the buffer (so it
  5174.         can be effectively used once only).  This is usually only called in
  5175.         the destructor.
  5176.         '''
  5177.         return _gdi_.BufferedDC_UnMask(*args, **kwargs)
  5178.  
  5179.  
  5180.  
  5181. class BufferedDCPtr(BufferedDC):
  5182.     
  5183.     def __init__(self, this):
  5184.         self.this = this
  5185.         if not hasattr(self, 'thisown'):
  5186.             self.thisown = 0
  5187.         
  5188.         self.__class__ = BufferedDC
  5189.  
  5190.  
  5191. _gdi_.BufferedDC_swigregister(BufferedDCPtr)
  5192.  
  5193. class BufferedPaintDC(BufferedDC):
  5194.     """
  5195.     This is a subclass of `wx.BufferedDC` which can be used inside of an
  5196.     EVT_PAINT event handler. Just create an object of this class instead
  5197.     of `wx.PaintDC` and that's all you have to do to (mostly) avoid
  5198.     flicker. The only thing to watch out for is that if you are using this
  5199.     class together with `wx.ScrolledWindow`, you probably do **not** want
  5200.     to call `wx.Window.PrepareDC` on it as it already does this internally
  5201.     for the real underlying `wx.PaintDC`.
  5202.  
  5203.     If your window is already fully buffered in a `wx.Bitmap` then your
  5204.     EVT_PAINT handler can be as simple as just creating a
  5205.     ``wx.BufferedPaintDC`` as it will `Blit` the buffer to the window
  5206.     automatically when it is destroyed.  For example::
  5207.  
  5208.         def OnPaint(self, event):
  5209.             dc = wx.BufferedPaintDC(self, self.buffer)
  5210.  
  5211.  
  5212.  
  5213.  
  5214.  
  5215.     """
  5216.     
  5217.     def __repr__(self):
  5218.         return '<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5219.  
  5220.     
  5221.     def __init__(self, *args, **kwargs):
  5222.         '''
  5223.         __init__(self, Window window, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedPaintDC
  5224.  
  5225.         Create a buffered paint DC.  As with `wx.BufferedDC`, you may either
  5226.         provide the bitmap to be used for buffering or let this object create
  5227.         one internally (in the latter case, the size of the client part of the
  5228.         window is automatically used).
  5229.  
  5230.  
  5231.         '''
  5232.         newobj = _gdi_.new_BufferedPaintDC(*args, **kwargs)
  5233.         self.this = newobj.this
  5234.         self.thisown = 1
  5235.         del newobj.thisown
  5236.  
  5237.  
  5238.  
  5239. class BufferedPaintDCPtr(BufferedPaintDC):
  5240.     
  5241.     def __init__(self, this):
  5242.         self.this = this
  5243.         if not hasattr(self, 'thisown'):
  5244.             self.thisown = 0
  5245.         
  5246.         self.__class__ = BufferedPaintDC
  5247.  
  5248.  
  5249. _gdi_.BufferedPaintDC_swigregister(BufferedPaintDCPtr)
  5250.  
  5251. class ScreenDC(DC):
  5252.     """
  5253.     A wxScreenDC can be used to paint anywhere on the screen. This should
  5254.     normally be constructed as a temporary stack object; don't store a
  5255.     wxScreenDC object.
  5256.  
  5257.     """
  5258.     
  5259.     def __repr__(self):
  5260.         return '<%s.%s; proxy of C++ wxScreenDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5261.  
  5262.     
  5263.     def __init__(self, *args, **kwargs):
  5264.         """
  5265.         __init__(self) -> ScreenDC
  5266.  
  5267.         A wxScreenDC can be used to paint anywhere on the screen. This should
  5268.         normally be constructed as a temporary stack object; don't store a
  5269.         wxScreenDC object.
  5270.  
  5271.         """
  5272.         newobj = _gdi_.new_ScreenDC(*args, **kwargs)
  5273.         self.this = newobj.this
  5274.         self.thisown = 1
  5275.         del newobj.thisown
  5276.  
  5277.     
  5278.     def StartDrawingOnTopWin(*args, **kwargs):
  5279.         '''
  5280.         StartDrawingOnTopWin(self, Window window) -> bool
  5281.  
  5282.         Specify that the area of the screen to be drawn upon coincides with
  5283.         the given window.
  5284.  
  5285.         :see: `EndDrawingOnTop`
  5286.         '''
  5287.         return _gdi_.ScreenDC_StartDrawingOnTopWin(*args, **kwargs)
  5288.  
  5289.     
  5290.     def StartDrawingOnTop(*args, **kwargs):
  5291.         '''
  5292.         StartDrawingOnTop(self, Rect rect=None) -> bool
  5293.  
  5294.         Specify that the area is the given rectangle, or the whole screen if
  5295.         ``None`` is passed.
  5296.  
  5297.         :see: `EndDrawingOnTop`
  5298.         '''
  5299.         return _gdi_.ScreenDC_StartDrawingOnTop(*args, **kwargs)
  5300.  
  5301.     
  5302.     def EndDrawingOnTop(*args, **kwargs):
  5303.         '''
  5304.         EndDrawingOnTop(self) -> bool
  5305.  
  5306.         Use this in conjunction with `StartDrawingOnTop` or
  5307.         `StartDrawingOnTopWin` to ensure that drawing to the screen occurs on
  5308.         top of existing windows. Without this, some window systems (such as X)
  5309.         only allow drawing to take place underneath other windows.
  5310.  
  5311.         You might use this pair of functions when implementing a drag feature,
  5312.         for example as in the `wx.SplitterWindow` implementation.
  5313.  
  5314.         These functions are probably obsolete since the X implementations
  5315.         allow drawing directly on the screen now. However, the fact that this
  5316.         function allows the screen to be refreshed afterwards may be useful
  5317.         to some applications.
  5318.         '''
  5319.         return _gdi_.ScreenDC_EndDrawingOnTop(*args, **kwargs)
  5320.  
  5321.  
  5322.  
  5323. class ScreenDCPtr(ScreenDC):
  5324.     
  5325.     def __init__(self, this):
  5326.         self.this = this
  5327.         if not hasattr(self, 'thisown'):
  5328.             self.thisown = 0
  5329.         
  5330.         self.__class__ = ScreenDC
  5331.  
  5332.  
  5333. _gdi_.ScreenDC_swigregister(ScreenDCPtr)
  5334.  
  5335. class ClientDC(DC):
  5336.     """
  5337.     A wx.ClientDC must be constructed if an application wishes to paint on
  5338.     the client area of a window from outside an EVT_PAINT event. This should
  5339.     normally be constructed as a temporary stack object; don't store a
  5340.     wx.ClientDC object long term.
  5341.  
  5342.     To draw on a window from within an EVT_PAINT handler, construct a
  5343.     `wx.PaintDC` object.
  5344.  
  5345.     To draw on the whole window including decorations, construct a
  5346.     `wx.WindowDC` object (Windows only).
  5347.  
  5348.     """
  5349.     
  5350.     def __repr__(self):
  5351.         return '<%s.%s; proxy of C++ wxClientDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5352.  
  5353.     
  5354.     def __init__(self, *args, **kwargs):
  5355.         '''
  5356.         __init__(self, Window win) -> ClientDC
  5357.  
  5358.         Constructor. Pass the window on which you wish to paint.
  5359.         '''
  5360.         newobj = _gdi_.new_ClientDC(*args, **kwargs)
  5361.         self.this = newobj.this
  5362.         self.thisown = 1
  5363.         del newobj.thisown
  5364.  
  5365.  
  5366.  
  5367. class ClientDCPtr(ClientDC):
  5368.     
  5369.     def __init__(self, this):
  5370.         self.this = this
  5371.         if not hasattr(self, 'thisown'):
  5372.             self.thisown = 0
  5373.         
  5374.         self.__class__ = ClientDC
  5375.  
  5376.  
  5377. _gdi_.ClientDC_swigregister(ClientDCPtr)
  5378.  
  5379. class PaintDC(DC):
  5380.     """
  5381.     A wx.PaintDC must be constructed if an application wishes to paint on
  5382.     the client area of a window from within an EVT_PAINT event
  5383.     handler. This should normally be constructed as a temporary stack
  5384.     object; don't store a wx.PaintDC object. If you have an EVT_PAINT
  5385.     handler, you **must** create a wx.PaintDC object within it even if you
  5386.     don't actually use it.
  5387.  
  5388.     Using wx.PaintDC within EVT_PAINT handlers is important because it
  5389.     automatically sets the clipping area to the damaged area of the
  5390.     window. Attempts to draw outside this area do not appear.
  5391.  
  5392.     To draw on a window from outside EVT_PAINT handlers, construct a
  5393.     `wx.ClientDC` object.
  5394.  
  5395.     """
  5396.     
  5397.     def __repr__(self):
  5398.         return '<%s.%s; proxy of C++ wxPaintDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5399.  
  5400.     
  5401.     def __init__(self, *args, **kwargs):
  5402.         '''
  5403.         __init__(self, Window win) -> PaintDC
  5404.  
  5405.         Constructor. Pass the window on which you wish to paint.
  5406.         '''
  5407.         newobj = _gdi_.new_PaintDC(*args, **kwargs)
  5408.         self.this = newobj.this
  5409.         self.thisown = 1
  5410.         del newobj.thisown
  5411.  
  5412.  
  5413.  
  5414. class PaintDCPtr(PaintDC):
  5415.     
  5416.     def __init__(self, this):
  5417.         self.this = this
  5418.         if not hasattr(self, 'thisown'):
  5419.             self.thisown = 0
  5420.         
  5421.         self.__class__ = PaintDC
  5422.  
  5423.  
  5424. _gdi_.PaintDC_swigregister(PaintDCPtr)
  5425.  
  5426. class WindowDC(DC):
  5427.     """
  5428.     A wx.WindowDC must be constructed if an application wishes to paint on
  5429.     the whole area of a window (client and decorations). This should
  5430.     normally be constructed as a temporary stack object; don't store a
  5431.     wx.WindowDC object.
  5432.     """
  5433.     
  5434.     def __repr__(self):
  5435.         return '<%s.%s; proxy of C++ wxWindowDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5436.  
  5437.     
  5438.     def __init__(self, *args, **kwargs):
  5439.         '''
  5440.         __init__(self, Window win) -> WindowDC
  5441.  
  5442.         Constructor. Pass the window on which you wish to paint.
  5443.         '''
  5444.         newobj = _gdi_.new_WindowDC(*args, **kwargs)
  5445.         self.this = newobj.this
  5446.         self.thisown = 1
  5447.         del newobj.thisown
  5448.  
  5449.  
  5450.  
  5451. class WindowDCPtr(WindowDC):
  5452.     
  5453.     def __init__(self, this):
  5454.         self.this = this
  5455.         if not hasattr(self, 'thisown'):
  5456.             self.thisown = 0
  5457.         
  5458.         self.__class__ = WindowDC
  5459.  
  5460.  
  5461. _gdi_.WindowDC_swigregister(WindowDCPtr)
  5462.  
  5463. class MirrorDC(DC):
  5464.     '''
  5465.     wx.MirrorDC is a simple wrapper class which is always associated with a
  5466.     real `wx.DC` object and either forwards all of its operations to it
  5467.     without changes (no mirroring takes place) or exchanges x and y
  5468.     coordinates which makes it possible to reuse the same code to draw a
  5469.     figure and its mirror -- i.e. reflection related to the diagonal line
  5470.     x == y.
  5471.     '''
  5472.     
  5473.     def __repr__(self):
  5474.         return '<%s.%s; proxy of C++ wxMirrorDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5475.  
  5476.     
  5477.     def __init__(self, *args, **kwargs):
  5478.         '''
  5479.         __init__(self, DC dc, bool mirror) -> MirrorDC
  5480.  
  5481.         Creates a mirrored DC associated with the real *dc*.  Everything drawn
  5482.         on the wx.MirrorDC will appear on the *dc*, and will be mirrored if
  5483.         *mirror* is True.
  5484.         '''
  5485.         newobj = _gdi_.new_MirrorDC(*args, **kwargs)
  5486.         self.this = newobj.this
  5487.         self.thisown = 1
  5488.         del newobj.thisown
  5489.  
  5490.  
  5491.  
  5492. class MirrorDCPtr(MirrorDC):
  5493.     
  5494.     def __init__(self, this):
  5495.         self.this = this
  5496.         if not hasattr(self, 'thisown'):
  5497.             self.thisown = 0
  5498.         
  5499.         self.__class__ = MirrorDC
  5500.  
  5501.  
  5502. _gdi_.MirrorDC_swigregister(MirrorDCPtr)
  5503.  
  5504. class PostScriptDC(DC):
  5505.     '''This is a `wx.DC` that can write to PostScript files on any platform.'''
  5506.     
  5507.     def __repr__(self):
  5508.         return '<%s.%s; proxy of C++ wxPostScriptDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5509.  
  5510.     
  5511.     def __init__(self, *args, **kwargs):
  5512.         '''
  5513.         __init__(self, wxPrintData printData) -> PostScriptDC
  5514.  
  5515.         Constructs a PostScript printer device context from a `wx.PrintData`
  5516.         object.
  5517.         '''
  5518.         newobj = _gdi_.new_PostScriptDC(*args, **kwargs)
  5519.         self.this = newobj.this
  5520.         self.thisown = 1
  5521.         del newobj.thisown
  5522.  
  5523.     
  5524.     def GetPrintData(*args, **kwargs):
  5525.         '''GetPrintData(self) -> wxPrintData'''
  5526.         return _gdi_.PostScriptDC_GetPrintData(*args, **kwargs)
  5527.  
  5528.     
  5529.     def SetPrintData(*args, **kwargs):
  5530.         '''SetPrintData(self, wxPrintData data)'''
  5531.         return _gdi_.PostScriptDC_SetPrintData(*args, **kwargs)
  5532.  
  5533.     
  5534.     def SetResolution(*args, **kwargs):
  5535.         '''
  5536.         SetResolution(int ppi)
  5537.  
  5538.         Set resolution (in pixels per inch) that will be used in PostScript
  5539.         output. Default is 720ppi.
  5540.         '''
  5541.         return _gdi_.PostScriptDC_SetResolution(*args, **kwargs)
  5542.  
  5543.     SetResolution = staticmethod(SetResolution)
  5544.     
  5545.     def GetResolution(*args, **kwargs):
  5546.         '''
  5547.         GetResolution() -> int
  5548.  
  5549.         Return resolution used in PostScript output.
  5550.         '''
  5551.         return _gdi_.PostScriptDC_GetResolution(*args, **kwargs)
  5552.  
  5553.     GetResolution = staticmethod(GetResolution)
  5554.  
  5555.  
  5556. class PostScriptDCPtr(PostScriptDC):
  5557.     
  5558.     def __init__(self, this):
  5559.         self.this = this
  5560.         if not hasattr(self, 'thisown'):
  5561.             self.thisown = 0
  5562.         
  5563.         self.__class__ = PostScriptDC
  5564.  
  5565.  
  5566. _gdi_.PostScriptDC_swigregister(PostScriptDCPtr)
  5567.  
  5568. def PostScriptDC_SetResolution(*args, **kwargs):
  5569.     '''
  5570.     PostScriptDC_SetResolution(int ppi)
  5571.  
  5572.     Set resolution (in pixels per inch) that will be used in PostScript
  5573.     output. Default is 720ppi.
  5574.     '''
  5575.     return _gdi_.PostScriptDC_SetResolution(*args, **kwargs)
  5576.  
  5577.  
  5578. def PostScriptDC_GetResolution(*args, **kwargs):
  5579.     '''
  5580.     PostScriptDC_GetResolution() -> int
  5581.  
  5582.     Return resolution used in PostScript output.
  5583.     '''
  5584.     return _gdi_.PostScriptDC_GetResolution(*args, **kwargs)
  5585.  
  5586.  
  5587. class MetaFile(_core.Object):
  5588.     '''Proxy of C++ MetaFile class'''
  5589.     
  5590.     def __repr__(self):
  5591.         return '<%s.%s; proxy of C++ wxMetaFile instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5592.  
  5593.     
  5594.     def __init__(self, *args, **kwargs):
  5595.         '''__init__(self, String filename=EmptyString) -> MetaFile'''
  5596.         newobj = _gdi_.new_MetaFile(*args, **kwargs)
  5597.         self.this = newobj.this
  5598.         self.thisown = 1
  5599.         del newobj.thisown
  5600.  
  5601.     
  5602.     def __del__(self, destroy = _gdi_.delete_MetaFile):
  5603.         '''__del__(self)'''
  5604.         
  5605.         try:
  5606.             if self.thisown:
  5607.                 destroy(self)
  5608.         except:
  5609.             pass
  5610.  
  5611.  
  5612.     
  5613.     def Ok(*args, **kwargs):
  5614.         '''Ok(self) -> bool'''
  5615.         return _gdi_.MetaFile_Ok(*args, **kwargs)
  5616.  
  5617.     
  5618.     def SetClipboard(*args, **kwargs):
  5619.         '''SetClipboard(self, int width=0, int height=0) -> bool'''
  5620.         return _gdi_.MetaFile_SetClipboard(*args, **kwargs)
  5621.  
  5622.     
  5623.     def GetSize(*args, **kwargs):
  5624.         '''GetSize(self) -> Size'''
  5625.         return _gdi_.MetaFile_GetSize(*args, **kwargs)
  5626.  
  5627.     
  5628.     def GetWidth(*args, **kwargs):
  5629.         '''GetWidth(self) -> int'''
  5630.         return _gdi_.MetaFile_GetWidth(*args, **kwargs)
  5631.  
  5632.     
  5633.     def GetHeight(*args, **kwargs):
  5634.         '''GetHeight(self) -> int'''
  5635.         return _gdi_.MetaFile_GetHeight(*args, **kwargs)
  5636.  
  5637.     
  5638.     def GetFileName(*args, **kwargs):
  5639.         '''GetFileName(self) -> String'''
  5640.         return _gdi_.MetaFile_GetFileName(*args, **kwargs)
  5641.  
  5642.     
  5643.     def __nonzero__(self):
  5644.         return self.Ok()
  5645.  
  5646.  
  5647.  
  5648. class MetaFilePtr(MetaFile):
  5649.     
  5650.     def __init__(self, this):
  5651.         self.this = this
  5652.         if not hasattr(self, 'thisown'):
  5653.             self.thisown = 0
  5654.         
  5655.         self.__class__ = MetaFile
  5656.  
  5657.  
  5658. _gdi_.MetaFile_swigregister(MetaFilePtr)
  5659.  
  5660. class MetaFileDC(DC):
  5661.     '''Proxy of C++ MetaFileDC class'''
  5662.     
  5663.     def __repr__(self):
  5664.         return '<%s.%s; proxy of C++ wxMetaFileDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5665.  
  5666.     
  5667.     def __init__(self, *args, **kwargs):
  5668.         '''
  5669.         __init__(self, String filename=EmptyString, int width=0, int height=0, 
  5670.             String description=EmptyString) -> MetaFileDC
  5671.         '''
  5672.         newobj = _gdi_.new_MetaFileDC(*args, **kwargs)
  5673.         self.this = newobj.this
  5674.         self.thisown = 1
  5675.         del newobj.thisown
  5676.  
  5677.     
  5678.     def Close(*args, **kwargs):
  5679.         '''Close(self) -> MetaFile'''
  5680.         return _gdi_.MetaFileDC_Close(*args, **kwargs)
  5681.  
  5682.  
  5683.  
  5684. class MetaFileDCPtr(MetaFileDC):
  5685.     
  5686.     def __init__(self, this):
  5687.         self.this = this
  5688.         if not hasattr(self, 'thisown'):
  5689.             self.thisown = 0
  5690.         
  5691.         self.__class__ = MetaFileDC
  5692.  
  5693.  
  5694. _gdi_.MetaFileDC_swigregister(MetaFileDCPtr)
  5695.  
  5696. class PrinterDC(DC):
  5697.     '''Proxy of C++ PrinterDC class'''
  5698.     
  5699.     def __repr__(self):
  5700.         return '<%s.%s; proxy of C++ wxPrinterDC instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5701.  
  5702.     
  5703.     def __init__(self, *args, **kwargs):
  5704.         '''__init__(self, wxPrintData printData) -> PrinterDC'''
  5705.         newobj = _gdi_.new_PrinterDC(*args, **kwargs)
  5706.         self.this = newobj.this
  5707.         self.thisown = 1
  5708.         del newobj.thisown
  5709.  
  5710.  
  5711.  
  5712. class PrinterDCPtr(PrinterDC):
  5713.     
  5714.     def __init__(self, this):
  5715.         self.this = this
  5716.         if not hasattr(self, 'thisown'):
  5717.             self.thisown = 0
  5718.         
  5719.         self.__class__ = PrinterDC
  5720.  
  5721.  
  5722. _gdi_.PrinterDC_swigregister(PrinterDCPtr)
  5723. IMAGELIST_DRAW_NORMAL = _gdi_.IMAGELIST_DRAW_NORMAL
  5724. IMAGELIST_DRAW_TRANSPARENT = _gdi_.IMAGELIST_DRAW_TRANSPARENT
  5725. IMAGELIST_DRAW_SELECTED = _gdi_.IMAGELIST_DRAW_SELECTED
  5726. IMAGELIST_DRAW_FOCUSED = _gdi_.IMAGELIST_DRAW_FOCUSED
  5727. IMAGE_LIST_NORMAL = _gdi_.IMAGE_LIST_NORMAL
  5728. IMAGE_LIST_SMALL = _gdi_.IMAGE_LIST_SMALL
  5729. IMAGE_LIST_STATE = _gdi_.IMAGE_LIST_STATE
  5730.  
  5731. class ImageList(_core.Object):
  5732.     '''Proxy of C++ ImageList class'''
  5733.     
  5734.     def __repr__(self):
  5735.         return '<%s.%s; proxy of C++ wxImageList instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5736.  
  5737.     
  5738.     def __init__(self, *args, **kwargs):
  5739.         '''__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList'''
  5740.         newobj = _gdi_.new_ImageList(*args, **kwargs)
  5741.         self.this = newobj.this
  5742.         self.thisown = 1
  5743.         del newobj.thisown
  5744.  
  5745.     
  5746.     def __del__(self, destroy = _gdi_.delete_ImageList):
  5747.         '''__del__(self)'''
  5748.         
  5749.         try:
  5750.             if self.thisown:
  5751.                 destroy(self)
  5752.         except:
  5753.             pass
  5754.  
  5755.  
  5756.     
  5757.     def Add(*args, **kwargs):
  5758.         '''Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int'''
  5759.         return _gdi_.ImageList_Add(*args, **kwargs)
  5760.  
  5761.     
  5762.     def AddWithColourMask(*args, **kwargs):
  5763.         '''AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int'''
  5764.         return _gdi_.ImageList_AddWithColourMask(*args, **kwargs)
  5765.  
  5766.     
  5767.     def AddIcon(*args, **kwargs):
  5768.         '''AddIcon(self, Icon icon) -> int'''
  5769.         return _gdi_.ImageList_AddIcon(*args, **kwargs)
  5770.  
  5771.     
  5772.     def GetBitmap(*args, **kwargs):
  5773.         '''GetBitmap(self, int index) -> Bitmap'''
  5774.         return _gdi_.ImageList_GetBitmap(*args, **kwargs)
  5775.  
  5776.     
  5777.     def GetIcon(*args, **kwargs):
  5778.         '''GetIcon(self, int index) -> Icon'''
  5779.         return _gdi_.ImageList_GetIcon(*args, **kwargs)
  5780.  
  5781.     
  5782.     def Replace(*args, **kwargs):
  5783.         '''Replace(self, int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool'''
  5784.         return _gdi_.ImageList_Replace(*args, **kwargs)
  5785.  
  5786.     
  5787.     def Draw(*args, **kwargs):
  5788.         '''
  5789.         Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL, 
  5790.             bool solidBackground=False) -> bool
  5791.         '''
  5792.         return _gdi_.ImageList_Draw(*args, **kwargs)
  5793.  
  5794.     
  5795.     def GetImageCount(*args, **kwargs):
  5796.         '''GetImageCount(self) -> int'''
  5797.         return _gdi_.ImageList_GetImageCount(*args, **kwargs)
  5798.  
  5799.     
  5800.     def Remove(*args, **kwargs):
  5801.         '''Remove(self, int index) -> bool'''
  5802.         return _gdi_.ImageList_Remove(*args, **kwargs)
  5803.  
  5804.     
  5805.     def RemoveAll(*args, **kwargs):
  5806.         '''RemoveAll(self) -> bool'''
  5807.         return _gdi_.ImageList_RemoveAll(*args, **kwargs)
  5808.  
  5809.     
  5810.     def GetSize(*args, **kwargs):
  5811.         '''GetSize() -> (width,height)'''
  5812.         return _gdi_.ImageList_GetSize(*args, **kwargs)
  5813.  
  5814.  
  5815.  
  5816. class ImageListPtr(ImageList):
  5817.     
  5818.     def __init__(self, this):
  5819.         self.this = this
  5820.         if not hasattr(self, 'thisown'):
  5821.             self.thisown = 0
  5822.         
  5823.         self.__class__ = ImageList
  5824.  
  5825.  
  5826. _gdi_.ImageList_swigregister(ImageListPtr)
  5827.  
  5828. class PenList(_core.Object):
  5829.     '''Proxy of C++ PenList class'''
  5830.     
  5831.     def __init__(self):
  5832.         raise RuntimeError, 'No constructor defined'
  5833.  
  5834.     
  5835.     def __repr__(self):
  5836.         return '<%s.%s; proxy of C++ wxPenList instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5837.  
  5838.     
  5839.     def AddPen(*args, **kwargs):
  5840.         '''AddPen(self, Pen pen)'''
  5841.         return _gdi_.PenList_AddPen(*args, **kwargs)
  5842.  
  5843.     
  5844.     def FindOrCreatePen(*args, **kwargs):
  5845.         '''FindOrCreatePen(self, Colour colour, int width, int style) -> Pen'''
  5846.         return _gdi_.PenList_FindOrCreatePen(*args, **kwargs)
  5847.  
  5848.     
  5849.     def RemovePen(*args, **kwargs):
  5850.         '''RemovePen(self, Pen pen)'''
  5851.         return _gdi_.PenList_RemovePen(*args, **kwargs)
  5852.  
  5853.     
  5854.     def GetCount(*args, **kwargs):
  5855.         '''GetCount(self) -> int'''
  5856.         return _gdi_.PenList_GetCount(*args, **kwargs)
  5857.  
  5858.  
  5859.  
  5860. class PenListPtr(PenList):
  5861.     
  5862.     def __init__(self, this):
  5863.         self.this = this
  5864.         if not hasattr(self, 'thisown'):
  5865.             self.thisown = 0
  5866.         
  5867.         self.__class__ = PenList
  5868.  
  5869.  
  5870. _gdi_.PenList_swigregister(PenListPtr)
  5871. cvar = _gdi_.cvar
  5872. NORMAL_FONT = cvar.NORMAL_FONT
  5873. SMALL_FONT = cvar.SMALL_FONT
  5874. ITALIC_FONT = cvar.ITALIC_FONT
  5875. SWISS_FONT = cvar.SWISS_FONT
  5876. RED_PEN = cvar.RED_PEN
  5877. CYAN_PEN = cvar.CYAN_PEN
  5878. GREEN_PEN = cvar.GREEN_PEN
  5879. BLACK_PEN = cvar.BLACK_PEN
  5880. WHITE_PEN = cvar.WHITE_PEN
  5881. TRANSPARENT_PEN = cvar.TRANSPARENT_PEN
  5882. BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN
  5883. GREY_PEN = cvar.GREY_PEN
  5884. MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN
  5885. LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN
  5886. BLUE_BRUSH = cvar.BLUE_BRUSH
  5887. GREEN_BRUSH = cvar.GREEN_BRUSH
  5888. WHITE_BRUSH = cvar.WHITE_BRUSH
  5889. BLACK_BRUSH = cvar.BLACK_BRUSH
  5890. TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH
  5891. CYAN_BRUSH = cvar.CYAN_BRUSH
  5892. RED_BRUSH = cvar.RED_BRUSH
  5893. GREY_BRUSH = cvar.GREY_BRUSH
  5894. MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH
  5895. LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH
  5896. BLACK = cvar.BLACK
  5897. WHITE = cvar.WHITE
  5898. RED = cvar.RED
  5899. BLUE = cvar.BLUE
  5900. GREEN = cvar.GREEN
  5901. CYAN = cvar.CYAN
  5902. LIGHT_GREY = cvar.LIGHT_GREY
  5903. STANDARD_CURSOR = cvar.STANDARD_CURSOR
  5904. HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR
  5905. CROSS_CURSOR = cvar.CROSS_CURSOR
  5906. NullBitmap = cvar.NullBitmap
  5907. NullIcon = cvar.NullIcon
  5908. NullCursor = cvar.NullCursor
  5909. NullPen = cvar.NullPen
  5910. NullBrush = cvar.NullBrush
  5911. NullPalette = cvar.NullPalette
  5912. NullFont = cvar.NullFont
  5913. NullColour = cvar.NullColour
  5914.  
  5915. class BrushList(_core.Object):
  5916.     '''Proxy of C++ BrushList class'''
  5917.     
  5918.     def __init__(self):
  5919.         raise RuntimeError, 'No constructor defined'
  5920.  
  5921.     
  5922.     def __repr__(self):
  5923.         return '<%s.%s; proxy of C++ wxBrushList instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5924.  
  5925.     
  5926.     def AddBrush(*args, **kwargs):
  5927.         '''AddBrush(self, Brush brush)'''
  5928.         return _gdi_.BrushList_AddBrush(*args, **kwargs)
  5929.  
  5930.     
  5931.     def FindOrCreateBrush(*args, **kwargs):
  5932.         '''FindOrCreateBrush(self, Colour colour, int style=SOLID) -> Brush'''
  5933.         return _gdi_.BrushList_FindOrCreateBrush(*args, **kwargs)
  5934.  
  5935.     
  5936.     def RemoveBrush(*args, **kwargs):
  5937.         '''RemoveBrush(self, Brush brush)'''
  5938.         return _gdi_.BrushList_RemoveBrush(*args, **kwargs)
  5939.  
  5940.     
  5941.     def GetCount(*args, **kwargs):
  5942.         '''GetCount(self) -> int'''
  5943.         return _gdi_.BrushList_GetCount(*args, **kwargs)
  5944.  
  5945.  
  5946.  
  5947. class BrushListPtr(BrushList):
  5948.     
  5949.     def __init__(self, this):
  5950.         self.this = this
  5951.         if not hasattr(self, 'thisown'):
  5952.             self.thisown = 0
  5953.         
  5954.         self.__class__ = BrushList
  5955.  
  5956.  
  5957. _gdi_.BrushList_swigregister(BrushListPtr)
  5958.  
  5959. class ColourDatabase(_core.Object):
  5960.     '''Proxy of C++ ColourDatabase class'''
  5961.     
  5962.     def __repr__(self):
  5963.         return '<%s.%s; proxy of C++ wxColourDatabase instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5964.  
  5965.     
  5966.     def __init__(self, *args, **kwargs):
  5967.         '''__init__(self) -> ColourDatabase'''
  5968.         newobj = _gdi_.new_ColourDatabase(*args, **kwargs)
  5969.         self.this = newobj.this
  5970.         self.thisown = 1
  5971.         del newobj.thisown
  5972.  
  5973.     
  5974.     def __del__(self, destroy = _gdi_.delete_ColourDatabase):
  5975.         '''__del__(self)'''
  5976.         
  5977.         try:
  5978.             if self.thisown:
  5979.                 destroy(self)
  5980.         except:
  5981.             pass
  5982.  
  5983.  
  5984.     
  5985.     def Find(*args, **kwargs):
  5986.         '''Find(self, String name) -> Colour'''
  5987.         return _gdi_.ColourDatabase_Find(*args, **kwargs)
  5988.  
  5989.     
  5990.     def FindName(*args, **kwargs):
  5991.         '''FindName(self, Colour colour) -> String'''
  5992.         return _gdi_.ColourDatabase_FindName(*args, **kwargs)
  5993.  
  5994.     FindColour = Find
  5995.     
  5996.     def AddColour(*args, **kwargs):
  5997.         '''AddColour(self, String name, Colour colour)'''
  5998.         return _gdi_.ColourDatabase_AddColour(*args, **kwargs)
  5999.  
  6000.     
  6001.     def Append(*args, **kwargs):
  6002.         '''Append(self, String name, int red, int green, int blue)'''
  6003.         return _gdi_.ColourDatabase_Append(*args, **kwargs)
  6004.  
  6005.  
  6006.  
  6007. class ColourDatabasePtr(ColourDatabase):
  6008.     
  6009.     def __init__(self, this):
  6010.         self.this = this
  6011.         if not hasattr(self, 'thisown'):
  6012.             self.thisown = 0
  6013.         
  6014.         self.__class__ = ColourDatabase
  6015.  
  6016.  
  6017. _gdi_.ColourDatabase_swigregister(ColourDatabasePtr)
  6018.  
  6019. class FontList(_core.Object):
  6020.     '''Proxy of C++ FontList class'''
  6021.     
  6022.     def __init__(self):
  6023.         raise RuntimeError, 'No constructor defined'
  6024.  
  6025.     
  6026.     def __repr__(self):
  6027.         return '<%s.%s; proxy of C++ wxFontList instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6028.  
  6029.     
  6030.     def AddFont(*args, **kwargs):
  6031.         '''AddFont(self, Font font)'''
  6032.         return _gdi_.FontList_AddFont(*args, **kwargs)
  6033.  
  6034.     
  6035.     def FindOrCreateFont(*args, **kwargs):
  6036.         '''
  6037.         FindOrCreateFont(self, int point_size, int family, int style, int weight, 
  6038.             bool underline=False, String facename=EmptyString, 
  6039.             int encoding=FONTENCODING_DEFAULT) -> Font
  6040.         '''
  6041.         return _gdi_.FontList_FindOrCreateFont(*args, **kwargs)
  6042.  
  6043.     
  6044.     def RemoveFont(*args, **kwargs):
  6045.         '''RemoveFont(self, Font font)'''
  6046.         return _gdi_.FontList_RemoveFont(*args, **kwargs)
  6047.  
  6048.     
  6049.     def GetCount(*args, **kwargs):
  6050.         '''GetCount(self) -> int'''
  6051.         return _gdi_.FontList_GetCount(*args, **kwargs)
  6052.  
  6053.  
  6054.  
  6055. class FontListPtr(FontList):
  6056.     
  6057.     def __init__(self, this):
  6058.         self.this = this
  6059.         if not hasattr(self, 'thisown'):
  6060.             self.thisown = 0
  6061.         
  6062.         self.__class__ = FontList
  6063.  
  6064.  
  6065. _gdi_.FontList_swigregister(FontListPtr)
  6066. NullColor = NullColour
  6067.  
  6068. class Effects(_core.Object):
  6069.     '''Proxy of C++ Effects class'''
  6070.     
  6071.     def __repr__(self):
  6072.         return '<%s.%s; proxy of C++ wxEffects instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6073.  
  6074.     
  6075.     def __init__(self, *args, **kwargs):
  6076.         '''__init__(self) -> Effects'''
  6077.         newobj = _gdi_.new_Effects(*args, **kwargs)
  6078.         self.this = newobj.this
  6079.         self.thisown = 1
  6080.         del newobj.thisown
  6081.  
  6082.     
  6083.     def GetHighlightColour(*args, **kwargs):
  6084.         '''GetHighlightColour(self) -> Colour'''
  6085.         return _gdi_.Effects_GetHighlightColour(*args, **kwargs)
  6086.  
  6087.     
  6088.     def GetLightShadow(*args, **kwargs):
  6089.         '''GetLightShadow(self) -> Colour'''
  6090.         return _gdi_.Effects_GetLightShadow(*args, **kwargs)
  6091.  
  6092.     
  6093.     def GetFaceColour(*args, **kwargs):
  6094.         '''GetFaceColour(self) -> Colour'''
  6095.         return _gdi_.Effects_GetFaceColour(*args, **kwargs)
  6096.  
  6097.     
  6098.     def GetMediumShadow(*args, **kwargs):
  6099.         '''GetMediumShadow(self) -> Colour'''
  6100.         return _gdi_.Effects_GetMediumShadow(*args, **kwargs)
  6101.  
  6102.     
  6103.     def GetDarkShadow(*args, **kwargs):
  6104.         '''GetDarkShadow(self) -> Colour'''
  6105.         return _gdi_.Effects_GetDarkShadow(*args, **kwargs)
  6106.  
  6107.     
  6108.     def SetHighlightColour(*args, **kwargs):
  6109.         '''SetHighlightColour(self, Colour c)'''
  6110.         return _gdi_.Effects_SetHighlightColour(*args, **kwargs)
  6111.  
  6112.     
  6113.     def SetLightShadow(*args, **kwargs):
  6114.         '''SetLightShadow(self, Colour c)'''
  6115.         return _gdi_.Effects_SetLightShadow(*args, **kwargs)
  6116.  
  6117.     
  6118.     def SetFaceColour(*args, **kwargs):
  6119.         '''SetFaceColour(self, Colour c)'''
  6120.         return _gdi_.Effects_SetFaceColour(*args, **kwargs)
  6121.  
  6122.     
  6123.     def SetMediumShadow(*args, **kwargs):
  6124.         '''SetMediumShadow(self, Colour c)'''
  6125.         return _gdi_.Effects_SetMediumShadow(*args, **kwargs)
  6126.  
  6127.     
  6128.     def SetDarkShadow(*args, **kwargs):
  6129.         '''SetDarkShadow(self, Colour c)'''
  6130.         return _gdi_.Effects_SetDarkShadow(*args, **kwargs)
  6131.  
  6132.     
  6133.     def Set(*args, **kwargs):
  6134.         '''
  6135.         Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour, 
  6136.             Colour mediumShadow, Colour darkShadow)
  6137.         '''
  6138.         return _gdi_.Effects_Set(*args, **kwargs)
  6139.  
  6140.     
  6141.     def DrawSunkenEdge(*args, **kwargs):
  6142.         '''DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)'''
  6143.         return _gdi_.Effects_DrawSunkenEdge(*args, **kwargs)
  6144.  
  6145.     
  6146.     def TileBitmap(*args, **kwargs):
  6147.         '''TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool'''
  6148.         return _gdi_.Effects_TileBitmap(*args, **kwargs)
  6149.  
  6150.  
  6151.  
  6152. class EffectsPtr(Effects):
  6153.     
  6154.     def __init__(self, this):
  6155.         self.this = this
  6156.         if not hasattr(self, 'thisown'):
  6157.             self.thisown = 0
  6158.         
  6159.         self.__class__ = Effects
  6160.  
  6161.  
  6162. _gdi_.Effects_swigregister(EffectsPtr)
  6163. TheFontList = cvar.TheFontList
  6164. ThePenList = cvar.ThePenList
  6165. TheBrushList = cvar.TheBrushList
  6166. TheColourDatabase = cvar.TheColourDatabase
  6167. CONTROL_DISABLED = _gdi_.CONTROL_DISABLED
  6168. CONTROL_FOCUSED = _gdi_.CONTROL_FOCUSED
  6169. CONTROL_PRESSED = _gdi_.CONTROL_PRESSED
  6170. CONTROL_ISDEFAULT = _gdi_.CONTROL_ISDEFAULT
  6171. CONTROL_ISSUBMENU = _gdi_.CONTROL_ISSUBMENU
  6172. CONTROL_EXPANDED = _gdi_.CONTROL_EXPANDED
  6173. CONTROL_CURRENT = _gdi_.CONTROL_CURRENT
  6174. CONTROL_SELECTED = _gdi_.CONTROL_SELECTED
  6175. CONTROL_CHECKED = _gdi_.CONTROL_CHECKED
  6176. CONTROL_CHECKABLE = _gdi_.CONTROL_CHECKABLE
  6177. CONTROL_UNDETERMINED = _gdi_.CONTROL_UNDETERMINED
  6178. CONTROL_FLAGS_MASK = _gdi_.CONTROL_FLAGS_MASK
  6179. CONTROL_DIRTY = _gdi_.CONTROL_DIRTY
  6180.  
  6181. class SplitterRenderParams(object):
  6182.     '''
  6183.     This is just a simple struct used as a return value of
  6184.     `wx.RendererNative.GetSplitterParams` and contains some platform
  6185.     specific metrics about splitters.
  6186.  
  6187.         * widthSash: the width of the splitter sash.
  6188.         * border: the width of the border of the splitter window.
  6189.         * isHotSensitive: ``True`` if the splitter changes its
  6190.           appearance when the mouse is over it.
  6191.  
  6192.  
  6193.     '''
  6194.     
  6195.     def __repr__(self):
  6196.         return '<%s.%s; proxy of C++ wxSplitterRenderParams instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6197.  
  6198.     
  6199.     def __init__(self, *args, **kwargs):
  6200.         '''
  6201.         __init__(self, int widthSash_, int border_, bool isSens_) -> SplitterRenderParams
  6202.  
  6203.         This is just a simple struct used as a return value of
  6204.         `wx.RendererNative.GetSplitterParams` and contains some platform
  6205.         specific metrics about splitters.
  6206.  
  6207.             * widthSash: the width of the splitter sash.
  6208.             * border: the width of the border of the splitter window.
  6209.             * isHotSensitive: ``True`` if the splitter changes its
  6210.               appearance when the mouse is over it.
  6211.  
  6212.  
  6213.         '''
  6214.         newobj = _gdi_.new_SplitterRenderParams(*args, **kwargs)
  6215.         self.this = newobj.this
  6216.         self.thisown = 1
  6217.         del newobj.thisown
  6218.  
  6219.     
  6220.     def __del__(self, destroy = _gdi_.delete_SplitterRenderParams):
  6221.         '''__del__(self)'''
  6222.         
  6223.         try:
  6224.             if self.thisown:
  6225.                 destroy(self)
  6226.         except:
  6227.             pass
  6228.  
  6229.  
  6230.     widthSash = property(_gdi_.SplitterRenderParams_widthSash_get)
  6231.     border = property(_gdi_.SplitterRenderParams_border_get)
  6232.     isHotSensitive = property(_gdi_.SplitterRenderParams_isHotSensitive_get)
  6233.  
  6234.  
  6235. class SplitterRenderParamsPtr(SplitterRenderParams):
  6236.     
  6237.     def __init__(self, this):
  6238.         self.this = this
  6239.         if not hasattr(self, 'thisown'):
  6240.             self.thisown = 0
  6241.         
  6242.         self.__class__ = SplitterRenderParams
  6243.  
  6244.  
  6245. _gdi_.SplitterRenderParams_swigregister(SplitterRenderParamsPtr)
  6246.  
  6247. class RendererVersion(object):
  6248.     '''
  6249.     This simple struct represents the `wx.RendererNative` interface
  6250.     version and is only used as the return value of
  6251.     `wx.RendererNative.GetVersion`.
  6252.     '''
  6253.     
  6254.     def __repr__(self):
  6255.         return '<%s.%s; proxy of C++ wxRendererVersion instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6256.  
  6257.     
  6258.     def __init__(self, *args, **kwargs):
  6259.         '''
  6260.         __init__(self, int version_, int age_) -> RendererVersion
  6261.  
  6262.         This simple struct represents the `wx.RendererNative` interface
  6263.         version and is only used as the return value of
  6264.         `wx.RendererNative.GetVersion`.
  6265.         '''
  6266.         newobj = _gdi_.new_RendererVersion(*args, **kwargs)
  6267.         self.this = newobj.this
  6268.         self.thisown = 1
  6269.         del newobj.thisown
  6270.  
  6271.     
  6272.     def __del__(self, destroy = _gdi_.delete_RendererVersion):
  6273.         '''__del__(self)'''
  6274.         
  6275.         try:
  6276.             if self.thisown:
  6277.                 destroy(self)
  6278.         except:
  6279.             pass
  6280.  
  6281.  
  6282.     Current_Version = _gdi_.RendererVersion_Current_Version
  6283.     Current_Age = _gdi_.RendererVersion_Current_Age
  6284.     
  6285.     def IsCompatible(*args, **kwargs):
  6286.         '''IsCompatible(RendererVersion ver) -> bool'''
  6287.         return _gdi_.RendererVersion_IsCompatible(*args, **kwargs)
  6288.  
  6289.     IsCompatible = staticmethod(IsCompatible)
  6290.     version = property(_gdi_.RendererVersion_version_get)
  6291.     age = property(_gdi_.RendererVersion_age_get)
  6292.  
  6293.  
  6294. class RendererVersionPtr(RendererVersion):
  6295.     
  6296.     def __init__(self, this):
  6297.         self.this = this
  6298.         if not hasattr(self, 'thisown'):
  6299.             self.thisown = 0
  6300.         
  6301.         self.__class__ = RendererVersion
  6302.  
  6303.  
  6304. _gdi_.RendererVersion_swigregister(RendererVersionPtr)
  6305.  
  6306. def RendererVersion_IsCompatible(*args, **kwargs):
  6307.     '''RendererVersion_IsCompatible(RendererVersion ver) -> bool'''
  6308.     return _gdi_.RendererVersion_IsCompatible(*args, **kwargs)
  6309.  
  6310.  
  6311. class RendererNative(object):
  6312.     '''
  6313.     One of the design principles of wxWidgets is to use the native widgets
  6314.     on every platform in order to be as close to the native look and feel
  6315.     on every platform.  However there are still cases when some generic
  6316.     widgets are needed for various reasons, but it can sometimes take a
  6317.     lot of messy work to make them conform to the native LnF.
  6318.  
  6319.     The wx.RendererNative class is a collection of functions that have
  6320.     platform-specific implementations for drawing certain parts of
  6321.     genereic controls in ways that are as close to the native look as
  6322.     possible.
  6323.  
  6324.     '''
  6325.     
  6326.     def __init__(self):
  6327.         raise RuntimeError, 'No constructor defined'
  6328.  
  6329.     
  6330.     def __repr__(self):
  6331.         return '<%s.%s; proxy of C++ wxRendererNative instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6332.  
  6333.     
  6334.     def DrawHeaderButton(*args, **kwargs):
  6335.         '''
  6336.         DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0)
  6337.  
  6338.         Draw the header control button (such as whar is used by `wx.ListCtrl`
  6339.         in report mode.)
  6340.         '''
  6341.         return _gdi_.RendererNative_DrawHeaderButton(*args, **kwargs)
  6342.  
  6343.     
  6344.     def DrawTreeItemButton(*args, **kwargs):
  6345.         '''
  6346.         DrawTreeItemButton(self, Window win, DC dc, Rect rect, int flags=0)
  6347.  
  6348.         Draw the expanded/collapsed icon for a tree control item.
  6349.         '''
  6350.         return _gdi_.RendererNative_DrawTreeItemButton(*args, **kwargs)
  6351.  
  6352.     
  6353.     def DrawSplitterBorder(*args, **kwargs):
  6354.         '''
  6355.         DrawSplitterBorder(self, Window win, DC dc, Rect rect, int flags=0)
  6356.  
  6357.         Draw the border for a sash window: this border must be such that the
  6358.         sash drawn by `DrawSplitterSash` blends into it well.
  6359.         '''
  6360.         return _gdi_.RendererNative_DrawSplitterBorder(*args, **kwargs)
  6361.  
  6362.     
  6363.     def DrawSplitterSash(*args, **kwargs):
  6364.         '''
  6365.         DrawSplitterSash(self, Window win, DC dc, Size size, int position, int orient, 
  6366.             int flags=0)
  6367.  
  6368.         Draw a sash. The orient parameter defines whether the sash should be
  6369.         vertical or horizontal and how the position should be interpreted.
  6370.         '''
  6371.         return _gdi_.RendererNative_DrawSplitterSash(*args, **kwargs)
  6372.  
  6373.     
  6374.     def DrawComboBoxDropButton(*args, **kwargs):
  6375.         '''
  6376.         DrawComboBoxDropButton(self, Window win, DC dc, Rect rect, int flags=0)
  6377.  
  6378.         Draw a button like the one used by `wx.ComboBox` to show a drop down
  6379.         window. The usual appearance is a downwards pointing arrow.
  6380.  
  6381.         The ``flags`` parameter may have the ``wx.CONTROL_PRESSED`` or
  6382.         ``wx.CONTROL_CURRENT`` bits set.
  6383.         '''
  6384.         return _gdi_.RendererNative_DrawComboBoxDropButton(*args, **kwargs)
  6385.  
  6386.     
  6387.     def DrawDropArrow(*args, **kwargs):
  6388.         '''
  6389.         DrawDropArrow(self, Window win, DC dc, Rect rect, int flags=0)
  6390.  
  6391.         Draw a drop down arrow that is suitable for use outside a combo
  6392.         box. Arrow will have a transparent background.
  6393.  
  6394.         ``rect`` is not entirely filled by the arrow. Instead, you should use
  6395.         bounding rectangle of a drop down button which arrow matches the size
  6396.         you need. ``flags`` may have the ``wx.CONTROL_PRESSED`` or
  6397.         ``wx.CONTROL_CURRENT`` bit set.
  6398.         '''
  6399.         return _gdi_.RendererNative_DrawDropArrow(*args, **kwargs)
  6400.  
  6401.     
  6402.     def GetSplitterParams(*args, **kwargs):
  6403.         '''
  6404.         GetSplitterParams(self, Window win) -> SplitterRenderParams
  6405.  
  6406.         Get the splitter parameters, see `wx.SplitterRenderParams`.
  6407.         '''
  6408.         return _gdi_.RendererNative_GetSplitterParams(*args, **kwargs)
  6409.  
  6410.     
  6411.     def Get(*args, **kwargs):
  6412.         '''
  6413.         Get() -> RendererNative
  6414.  
  6415.         Return the currently used renderer
  6416.         '''
  6417.         return _gdi_.RendererNative_Get(*args, **kwargs)
  6418.  
  6419.     Get = staticmethod(Get)
  6420.     
  6421.     def GetGeneric(*args, **kwargs):
  6422.         '''
  6423.         GetGeneric() -> RendererNative
  6424.  
  6425.         Return the generic implementation of the renderer. Under some
  6426.         platforms, this is the default renderer implementation, others have
  6427.         platform-specific default renderer which can be retrieved by calling
  6428.         `GetDefault`.
  6429.         '''
  6430.         return _gdi_.RendererNative_GetGeneric(*args, **kwargs)
  6431.  
  6432.     GetGeneric = staticmethod(GetGeneric)
  6433.     
  6434.     def GetDefault(*args, **kwargs):
  6435.         '''
  6436.         GetDefault() -> RendererNative
  6437.  
  6438.         Return the default (native) implementation for this platform -- this
  6439.         is also the one used by default but this may be changed by calling `Set`
  6440.         in which case the return value of this method may be different from
  6441.         the return value of `Get`.
  6442.         '''
  6443.         return _gdi_.RendererNative_GetDefault(*args, **kwargs)
  6444.  
  6445.     GetDefault = staticmethod(GetDefault)
  6446.     
  6447.     def Set(*args, **kwargs):
  6448.         '''
  6449.         Set(RendererNative renderer) -> RendererNative
  6450.  
  6451.         Set the renderer to use, passing None reverts to using the default
  6452.         renderer.  Returns the previous renderer used with Set or None.
  6453.         '''
  6454.         return _gdi_.RendererNative_Set(*args, **kwargs)
  6455.  
  6456.     Set = staticmethod(Set)
  6457.     
  6458.     def GetVersion(*args, **kwargs):
  6459.         '''
  6460.         GetVersion(self) -> RendererVersion
  6461.  
  6462.         Returns the version of the renderer.  Will be used for ensuring
  6463.         compatibility of dynamically loaded renderers.
  6464.         '''
  6465.         return _gdi_.RendererNative_GetVersion(*args, **kwargs)
  6466.  
  6467.  
  6468.  
  6469. class RendererNativePtr(RendererNative):
  6470.     
  6471.     def __init__(self, this):
  6472.         self.this = this
  6473.         if not hasattr(self, 'thisown'):
  6474.             self.thisown = 0
  6475.         
  6476.         self.__class__ = RendererNative
  6477.  
  6478.  
  6479. _gdi_.RendererNative_swigregister(RendererNativePtr)
  6480.  
  6481. def RendererNative_Get(*args, **kwargs):
  6482.     '''
  6483.     RendererNative_Get() -> RendererNative
  6484.  
  6485.     Return the currently used renderer
  6486.     '''
  6487.     return _gdi_.RendererNative_Get(*args, **kwargs)
  6488.  
  6489.  
  6490. def RendererNative_GetGeneric(*args, **kwargs):
  6491.     '''
  6492.     RendererNative_GetGeneric() -> RendererNative
  6493.  
  6494.     Return the generic implementation of the renderer. Under some
  6495.     platforms, this is the default renderer implementation, others have
  6496.     platform-specific default renderer which can be retrieved by calling
  6497.     `GetDefault`.
  6498.     '''
  6499.     return _gdi_.RendererNative_GetGeneric(*args, **kwargs)
  6500.  
  6501.  
  6502. def RendererNative_GetDefault(*args, **kwargs):
  6503.     '''
  6504.     RendererNative_GetDefault() -> RendererNative
  6505.  
  6506.     Return the default (native) implementation for this platform -- this
  6507.     is also the one used by default but this may be changed by calling `Set`
  6508.     in which case the return value of this method may be different from
  6509.     the return value of `Get`.
  6510.     '''
  6511.     return _gdi_.RendererNative_GetDefault(*args, **kwargs)
  6512.  
  6513.  
  6514. def RendererNative_Set(*args, **kwargs):
  6515.     '''
  6516.     RendererNative_Set(RendererNative renderer) -> RendererNative
  6517.  
  6518.     Set the renderer to use, passing None reverts to using the default
  6519.     renderer.  Returns the previous renderer used with Set or None.
  6520.     '''
  6521.     return _gdi_.RendererNative_Set(*args, **kwargs)
  6522.  
  6523.